UnixPedia : HPUX / LINUX / SOLARIS: HPUX :How to find Vg id on Disk.

Saturday, September 27, 2014

HPUX :How to find Vg id on Disk.

Use the 'xd' command and read the headers of each disk to find the VG id number of the VG that the disk was in.  Each disk that was in the same VG will have the same VG id number recorded on the header.
The command to run is:
# xd -An -j8200 -N16 -tx <disk device file>

For example:
# xd -An -j8200 -N16 -tx /dev/rdsk/c1t2d0
                69ea86f7        503542b4        69ea86f7        503543e0

The VG id number is the 4th field in the output.  So in this case the VG id is 503543e0.  If I were to run this against numerous disks, and found another with the same VG id, then it is very likely that they are part of the same VG.

Once you know which disks are have the same VG id, you can then vgimport that set of disks into a VG on the current system

No comments:

Post a Comment