HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 91 (of 110)
Chapter 13 LVM
October 29, 2013
next field: "915654113" is the pvid, not important at this time.
next field: "418374281" is the cpu id again
Now the last field is the one we want to pay attention to: "909512229"
This is the vgid field and represents the unique volume group identifier.
This will need to be done for each disk that is not matched to a volume
group. Once you have matched the vgid's of the disks then use the
vgimport command to import the disks into a volume group.
for example..
# mkdir /dev/vgtest
# mknod /dev/vgtest/group c 64 0x140000
NOTE: The minor number used must be a minor number that is not already
being used. It it is a required not to use a number higher than the value of
the maxvg kernel parameter. If there are gaps in the existing minor numbers one
can be selected to fill in the gaps. If 0x00, 0x01 0x03, 0x04 are in use then
0x02 would be a good choice for the next group file, but the numbers do not
have to be used in any specific order.
To determine the value of maxvg:
# sysdef | grep maxvg
Tip: to convert hex to decimal and decimal to hex you can use adb.
To convert decimal 127 to hex:
# echo '0d127=X' | adb -o
7F
To convert hex 7F to decimal:
# echo '0x7f=D' | adb -o
127
To find the existing minor numbers of existing volume groups do the following:
# ll /dev/*/group
Then next step is to vgimport the volume groups:
# vgimport /dev/vgtest /dev/dsk/cxtxdx /dev/dsk/cxtxdx(for each disk in