HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 27 (of 110)
Chapter 13 LVM
October 29, 2013
The c following the device file name specifies that group is a character device file.
major is the major number for the group device file.
For a Version 1.0 volume group, it is 64.
For a Version 2.x volume group, it is 128.
minor is the minor number for the group file in hexadecimal.
For a Version 1.0 volume group, minor has the form 0xnn0000, where nn is a unique
number across all Version 1.0 volume groups.
For a Version 2.x volume group, minor has the form 0xnnn000, where nnn
is a unique number across all Version 2.x volume groups.
5) creating a volume group
Version 1.0 Volume Group
# vgcreate /dev/vgname /dev/disk/disk3
Version 2.x Volume Group
# vgcreate -V 2.0 -s pe_size -S vg_size /dev/vgname /dev/disk/disk3
NOTE: One of the VG’s parameters is max_pe, i.e the maximum number of
physical extents this VG can handle per disk. The default value is 1016. Multiplying
this with the default PE size of 4MB results in approx. 4GB disk space that can be
handled by this VG. Adding a larger disk to this VG later is not possible. Believe me -
there are absolutely no options to do this other than vgcreate! Anyway - vgcreate
automatically adjusts max_pe in order be able to handle the largest PV given in the
arguments. Its always a good idea to set max_pe explicitely to a value large enough
to allow for future expansions. This can be done with the -e option of vgcreate.
Adding a new 1.0 or 2.x LV
The following creates a 500MB large LV named lvdata on any disk(s) of the VG vg01:
# lvcreate -n lvdata -L 500 vg01
You cannot specify a PV with lvcreate. If you like to place the LV on a specific PV, then
first create an LV of 0MB. It has no extents - it just exists.