Re: dbspaces question ....
Posted in 1998
> Hi,
> Environment : OSD 7.23uc4
> HP-UX 10.20
> We have all 2Gb disk chunks ( told by Unix Admin to me ).
> I tried to run onspaces command for the size more than this and
> I found that I can allocate 2.048Gb
> Also existing allocation of disk space leaves gaps of few Mb in between
> two dbspaces which can be used.
How many bytes do you think are in a gigabyte? Some people (PC disk drive marketing types
and lazy people) believe it is 1,000,000,000 (one billion). In actuality, a gigabyte is
2^30, or 1024^3, or 1,073,741,824 bytes. Multiply by 2 and you get 2,147,483,648 bytes. 2
gigabytes equals 2,048 megabytes (1,048,576 bytes = 1 megabyte).
> 1) Can I use the whole 2.048Gb ?
If the numbers are like those above, yes. Informix uses "true" gigabytes, not some
easily-remembered approximation. Actually, I've only been able to allocate a chunk of
1,048,575 pages, which is 2 KB shy of a full 2 GB.
> 2) Shall I leave some gap between 2 dbspaces like this ?
You can if you want, but I don't see a need for it. You're just not using all of the disk
that you paid for.
One thing you will need to consider on some systems is that if you use Logical Volume
Manager (LVM) to create 2 GB logical volumes from a larger physical volume, sometimes you
need to skip the first few KB of space on the physical volume because LVM keeps some
housekeeping stuff there. In other words, if you have a 9 GB physical disk, you may have to
skip 100 KB, then you could create four 2 GB logical volumes and one more logical volume
with whatever is left over. I'm told (by HP) that this is not required on HP-UX.
> Thanks in advance.
>
> Abhay Mannur.
Mark Collins
mcollins@us.dhl.com
People who have no clear idea what they mean by information or why
they should want so much of it are nonetheless prepared to believe
that we live in an Information Age, which makes every computer
around us what the relics of the True Cross were in the Age of
Faith: emblems of salvation.