I am not sure myself but I would not bet on 4096 as 'block size' for the chunks. Are you not using LVM where you could e.g. use lvdisplay (HP-UX) to determine the size of a logical volume? From there you could possibly make a link to the chunk sizes etc.
i beleave i understand yourstatement. I already have the size of the Logical Volume. I am trying to find out the actual size of the db space used. that way i can reduce the lv size acordingly.
the 4096 from what i was told is the size of each page in bytes. the colume for size and free are in pages. this is where i was getting my math from to figure out how big the actual dbspace is.
I think, that it is not good idea to find solution in UNIX side, you can find SQL script for this:
database sysmaster;
select sum(nptotal) npt, sum(npused) npu
,dbsname dbn
from sysptnhdr h, sysptprof p
where h.partnum = p.partnum
-- and dbsname = "ert_refv211c"
and dbsname not like "sys%"
and dbsname not like "tmp%"
group by dbsname
into temp x;
select
npt,npu,dbn[1,9],
round (npt2/1024,2) mb_total,
round (npu2/1024,2) mb_used
from x;
select round(sum(npt)*2/1024,2) mbt, round(sum(npu)*2/1024) mb_u from x;
drop table x;
Your method is mostly correct, but I am not sure about your math!
acutal_size = free * 4096 = bytes
/ 1024 = Kbytes
/ 1024 = Mbytes
/ 1024 = GBytes.
Thats makes the total size of a chunk at 0.9gb
Free:
692mb
944mb
621mb
194mb
Do these numbers seem familiar? Plug them into a spread sheet for more accurate results.
Plus, be very careful when changing the disk allocations of logical volumes underneath Informix' nose. If you screw up, Informix won't like it and a level 0 archive/restore might not cut it either. Do a dbexport to disk or tape. It may take a while, and the restoration, with dbimport, may be a bit trickier with large tables. The benefit would be that the format (dbschema + unload files) is simple and does not rely on the underlying instance configuration on being exactly the same.
thank you all for your suggestions. i am reading up on informix databases befor i actually do anything. In the end i might not have to reorginize anything.