Originally posted by: Wouter Liefting
There's an undocumented command lqueryvg (and its cousin lquerypv) that will query the disk directly, without the need to import the data into the ODM (like varyonvg would do).
lqueryvg -Atvp hdisk# will, amongst other things, show you which disks (pvid) make up the volume group.
Note that you will only get the PVID numbers from lqueryvg, since the order in which the disks are detected may have been changed. To find out the mapping between the PVID and the hdisk number, you can use lquerypv -h /dev/hdisk# 80 10 on each disk. This will show you the PVID of that disk. Importvg/varyonvg will apply the same trick: Get the PVIDs from the VGDA from the disk you are importing, then scan all disks to find the disk with the proper PVID.
Also note that the volume group name is not stored in the VGDA. Rather, a volume group only gets a name when you do the importvg/varyonvg, and that name is only stored in the ODM and the kernel data structures, not on disk. That's why lspv will always show "None", both in case the disk is not part of a VG, and in case the disk is part of a VG that is not imported/varyonvg-ed.
#AIX-Forum