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

HP-UX Handbook Rev 13.00 Page 90 (of 110)
Chapter 13 LVM
October 29, 2013
The vgimport of a volume group fails. vgscan -p -v -a gives the following
error:
The following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
RESOLUTION
1. Find the disks that appear to belong to a volume group in the lvm
configuration but cannot be matched with one:
# vgscan -p -v -a
(There is no need to move the /etc/lvmtab because vgscan
will run in the preview mode and not actaully build the /etc/lvmtab)
In the output of the vgscan you will see information that looks something like
this:
The following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
A list of the device files for each of the disks's will be listed beneath the
message.
These are most likely the disks that you are working with, but this does not
mean that all the disks belong to the same volume group.
To match the group of disks to a single volume group do the following:
eg..
FYI: 0x2008?4 is always the offset of the lvm data structure.
# echo 0x2008?4D|adb -o /dev/disk/disk3_p2
0x2008: 418374281 915654113 418374281 909512229
The volume group name is not important at this point, but it is important to
find the disks that have the same vgid or volume group id.
Notice the first field to the left: "2008" this represents the address
on the disk for the lvm data. It will always be the same.
next field: "418374281" this is the system or cpu id. You should see the
same number returned from uname -i.