How to interpret PV and VG numbers from HP-UX syslog.log

Error messages like the following in syslog.log:

Aug 14 00:14:05 cust1 vmunix: LVM: Performed a switch for Lun ID = 0 (pv = 0x000000005ed22800), from raw device 0x1f00b400 (with priority: 0, and current flags: 0x40) to raw device 0x1f03b400 (with priority: 1, and current flags: 0x0).
Aug 14 00:14:05 cust1 vmunix: LVM: Performed a switch for Lun ID = 0 (pv = 0x000000005ed22800), from raw device 0x1f03b400 (with priority: 1, and current flags: 0x0) to raw device 0x1f00b400 (with priority: 0, and current flags: 0x0).
Aug 14 00:14:05 cust1 vmunix: LVM: Recovered Path (device 0x1f00b400) to PV 11 in VG 18.
Aug 14 00:14:05 cust1 vmunix: LVM: Restored PV 11 to VG 18.

To determine the Volume Group that VG 18 refers to:

translate 18 (dec) into 12 (hex)

then look for the “group” file that has the value 0x??0000 where ?? = the hex value. e.g. issue: ls -lr /dev/*/group | grep 0x120000

 

crw-r–r– 1 root sys 64 0x120000 Apr 19 01:30 /dev/vgdata_02/group

So VG 18 is volume group vgdata_02.

 

To next determine the Physical Volume that PV 11 refers to:

issue: strings /etc/lvmtab

then look at the section for the relevant volume group, e.g. vgdata_02:

/dev/vgdata_02
/dev/dsk/c0t2d0
/dev/dsk/c0t2d3
/dev/dsk/c0t2d4
/dev/dsk/c0t3d0
/dev/dsk/c0t3d3
/dev/dsk/c0t3d4
/dev/dsk/c0t4d2
/dev/dsk/c0t4d5
/dev/dsk/c0t5d1
/dev/dsk/c0t11d2
/dev/dsk/c0t11d3
/dev/dsk/c0t11d4
/dev/dsk/c0t11d5
/dev/dsk/c0t11d6
/dev/dsk/c0t11d7
/dev/dsk/c0t12d0
/dev/dsk/c3t2d0
/dev/dsk/c8t2d0
/dev/dsk/c11t2d0
/dev/dsk/c3t2d3
/dev/dsk/c8t2d3
/dev/dsk/c11t2d3
/dev/dsk/c3t2d4
/dev/dsk/c8t2d4
/dev/dsk/c11t2d4
/dev/dsk/c3t3d0
/dev/dsk/c8t3d0
/dev/dsk/c11t3d0
/dev/dsk/c3t3d3
/dev/dsk/c8t3d3
/dev/dsk/c11t3d3
/dev/dsk/c3t3d4
/dev/dsk/c8t3d4
/dev/dsk/c11t3d4
/dev/dsk/c3t4d2
/dev/dsk/c8t4d2
/dev/dsk/c11t4d2
/dev/dsk/c3t4d5
/dev/dsk/c8t4d5
/dev/dsk/c11t4d5
/dev/dsk/c3t5d1
/dev/dsk/c8t5d1
/dev/dsk/c11t5d1
/dev/dsk/c3t11d2
/dev/dsk/c8t11d2
/dev/dsk/c11t11d2
/dev/dsk/c3t11d3
/dev/dsk/c8t11d3
/dev/dsk/c11t11d3
/dev/dsk/c3t11d4
/dev/dsk/c8t11d4
/dev/dsk/c11t11d4
/dev/dsk/c3t11d5
/dev/dsk/c8t11d5
/dev/dsk/c11t11d5
/dev/dsk/c3t11d6
/dev/dsk/c8t11d6
/dev/dsk/c11t11d6
/dev/dsk/c3t11d7
/dev/dsk/c8t11d7
/dev/dsk/c11t11d7
/dev/dsk/c3t12d0
/dev/dsk/c8t12d0
/dev/dsk/c11t12d0

Note that PV 0 is the first c#t#d# entry. So here PV 11 refers to the 12th entry: /dev/dsk/c0t11d4.

To double-check, determine which c#t#d# that device 0x1f00b400 refers to. It is c0t11d4.

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top