Operating System - HP-UX
1855680 Members
4481 Online
104103 Solutions
New Discussion

Re: Need LV bigger than 130Gb

 
SOLVED
Go to solution
Zlatko_1
Occasional Advisor

Need LV bigger than 130Gb


How can create LV bigger than 131Gb ? I have Raid with 1Tb and HP-UX 11.0(ignite, VxFS), and it only allows me to create max 131Gb LV. Any suggestion ? Thank you.
3 REPLIES 3
Stefan Farrelly
Honored Contributor

Re: Need LV bigger than 130Gb

You will need to increse the PE size from 4Mb up to around 16MB when you create the volume group. You will need to destroy any existing VG first, then recreate with the new larger PE size, then you can create an lvol under it >131Gb.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Armin Feller
Honored Contributor
Solution

Re: Need LV bigger than 130Gb

By default, when issueing vgcreate(1M), the PE size is 4 MB and the LE_number
is a decimal value in the range 1 to 65535, so:

65535 * 4 MB ---> it yields 262140 MB = 256 MB

Refer to the man page of lvcreate:

-l le_number Allocate space to the logical volume,
specified in logical extents. le_number
is a decimal value in the range 1 to
65535 (the implementation limit). The
default is described above.

Either -l or -L can be specified, but
not both.

-L lv_size Allocate space to the logical volume,
specified in megabytes. lv_size is a
decimal value in the range 1 to 16777216
(the implementation limit). lv_size is
rounded up to the nearest multiple of
the logical extent size, equivalent to
the physical extent size defined for the
volume group by the vgcreate command
(see vgcreate(1M)). The default is
described above.

So the procedure is:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
pvcreate /dev/rdsk/c....
vgcreate -s 32 /dev/vg01 /dev/dsk/c...
vgextend /dev/vg01 /dev/dsk/c...
lvcreate -l 65535 -n lvtest /dev/vg01

where: 65535 * 32 MB = 2097120 MB = 2TB

newfs -F vxfs ......

Please refer to:

- man page of vgcreate(1M) for the -s option
- man page of lvcreate(1M)
Zlatko_1
Occasional Advisor

Re: Need LV bigger than 130Gb

You are Great !
Thank a lot
Bye