HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 100 (of 110)
Chapter 13 LVM
October 29, 2013
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1600
Current LE 400
3. PROBLEM lvextend: "LogicalExtentsNumber" is bigger than the maximum value
allowed
While trying to make a file system larger using the command:
lvextend -L 300000 /dev/vgxx/lvol1
it fails with the error:
lvextend: "LogicalExtentsNumber" is bigger than the maximum value allowed.
The total physical volume size would allow a file system of 323616 Mbytes
(4 Mbytes * 80904):
# vgdisplay /dev/vgxx
...
PE size (Mbytes) 4
total PE 80904
free PE 19404
RESOLUTION
The lvextend man page states for the -L option:
"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 physical extent (PE) size for the volume group and such the logical extent
(LE) size is 4 Mbytes. The maximum number of logical extents is 65535.
That allows for a maximum logical volume size of 262140 Mbytes
(4 Mbytes * 65535).
It is not possible to increase the logical volume size beyond 262140 Mbytes
for the existing volume group.
To solution is to recreate the volume group with a larger PE size. A PE size
of 8 Mbytes for example allows for a logical volume and file system of up
to 524280 Mbytes.