Operating System - HP-UX
1832567 Members
5655 Online
110043 Solutions
New Discussion

On PowerFail how do calculate PV 13 in VG 9?

 
SOLVED
Go to solution
Stuart Abramson
Trusted Contributor

On PowerFail how do calculate PV 13 in VG 9?

What does this mean:

.... Restored PV 13 to VG 9.
.... Recovered Path (device 0x1f360700) to PV 13 in VG 9.

a. 0x1f360700 translates to c54t0d7

1f is 31 is the major number of the device
360700 is the minor number of the device file

# ll -R /dev/ | grep 31 | grep 360700
brw-r----- 1 bin sys 31 0x360700 May 19 2002 c54t0d7

So, its /dev/dsk/c54t0d7.

b. What VG is it in?:

VG 9 means the VG with minor number 09:

# ll /dev/vg*/group | grep 09

crw-r--r-- 1 root sys 64 0x090000 May 19 2002 /dev/vg50/group

c. What PV is it in the VG?:

Is it the 13th PV?

Look at this:

# vgdisplay -v vg50 | grep dsk | more
PV Name /dev/dsk/c54t0d4
PV Name /dev/dsk/c76t8d4 Alternate Link
PV Name /dev/dsk/c54t0d5
PV Name /dev/dsk/c76t8d5 Alternate Link
PV Name /dev/dsk/c54t0d6
PV Name /dev/dsk/c76t8d6 Alternate Link
==> PV Name /dev/dsk/c54t0d7
PV Name /dev/dsk/c76t8d7 Alternate Link
PV Name /dev/dsk/c54t8d4

It's the 7th one listed in the vgdisplay.

What does the "13" mean?

4 REPLIES 4
Slawomir Gora
Honored Contributor
Solution

Re: On PowerFail how do calculate PV 13 in VG 9?

Hi,

PV[x]
x - PV Key
you can display PV key by command:
ex:
xd -j8222 -N2 /dev/rdsk/c54t0dd6 | awk '{print $2}'
Stuart Abramson
Trusted Contributor

Re: On PowerFail how do calculate PV 13 in VG 9?

You're absolutely right. How did you know that?

The VGDA or VGRA or one of those guys begins at byte 8200. The VGID is stored around 8216, something like that.
Gerhard Roets
Esteemed Contributor

Re: On PowerFail how do calculate PV 13 in VG 9?

Hi Stuart

Firstly it means there was some kind of communication outage on that specific path, and it is restored now and can talk to the disk via the primary path.

a. The other command you got from the first reply is a good way to verify your translation.

b.If you look at the message part saying VG 9. The 9 should(in theory) match the minur number of the vg's group file. So to get the vg it belongs to ll/dev/*/group should point you in the right direction.

c. Yes its the 13th one but not strait numericaly since the alternate paths does have an influence in this count. It is on the 13th ontry in the tables of the vg.

HTH
Gerhard
Stuart Abramson
Trusted Contributor

Re: On PowerFail how do calculate PV 13 in VG 9?

Gerhard:

Where do I read the table in which the disk is the 13th entry? If you look at the vgdisplay above my disk, counting links, is the 7th disk in the VG, not the 13th.

..Stuart