[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    clobbered VGDA on disk - restorable?
From:       "F. Even" <aixlists () ELITISTS ! ORG>
Date:       2009-03-27 21:43:15
Message-ID: c5bba06c0903271443y2f439f9fl6ce23e243b4e7df3 () mail ! gmail ! com
[Download RAW message or body]

To All,

OK...I've got one disk (sdd vpath) that was the only disk in a VG.
While everything was up and running nicely, it appears someone
attempted to right a VCS (Veritas Cluster Server) signature to the
disk.  It appears they realized it was a mistake and moved on to
actually configuring the correct disks.  ...but...they never went back
and did anything to make sure the incorrect disk they wrote the
signature to was OK.  4 months later...this box locks up and we power
cycle it, and are now missing a VG.

VG won't vary on.

0516-013 varyonvg: The volume group cannot be varied on because
        there are no good copies of the descriptor area.

I've attempted to run the chpvid script that was in the back of the
AIX LVM from A to Z guide to attempt to restore it.  Here is what I
was looking at previous to that:

# lquerypv -h /dev/vpath2
00000000   47414200 31313233 00000000 00000000  |GAB.1123........|
00000010   00000000 00000000 00000000 00000000  |................|
00000020   00000000 00000000 00000000 00000000  |................|
00000030   00000000 00000000 00000000 00000000  |................|
00000040   00000000 00000000 00000000 00000000  |................|
00000050   00000000 00000000 00000000 00000000  |................|
00000060   00000000 00000000 00000000 00000000  |................|
00000070   00000000 00000000 00000000 00000000  |................|
00000080   00000000 00000000 00000000 00000000  |................|
00000090   00000000 00000000 00000000 00000000  |................|
000000A0   00000000 00000000 00000000 00000000  |................|
000000B0   00000000 00000000 00000000 00000000  |................|
000000C0   00000000 00000000 00000000 00000000  |................|
000000D0   00000000 00000000 00000000 00000000  |................|
000000E0   00000000 00000000 00000000 00000000  |................|
000000F0   00000000 00000000 00000000 00000000  |................|

Here is what I am looking at after:

# lquerypv -h /dev/vpath2
00000000   47414200 31313233 00000000 00000000  |GAB.1123........|
00000010   00000000 00000000 00000000 00000000  |................|
00000020   00000000 00000000 00000000 00000000  |................|
00000030   00000000 00000000 00000000 00000000  |................|
00000040   00000000 00000000 00000000 00000000  |................|
00000050   00000000 00000000 00000000 00000000  |................|
00000060   00000000 00000000 00000000 00000000  |................|
00000070   00000000 00000000 00000000 00000000  |................|
00000080   00CA7E30 0A28A36E 00000000 00000000  |..~0.(.n........|
00000090   00000000 00000000 00000000 00000000  |................|
000000A0   00000000 00000000 00000000 00000000  |................|
000000B0   00000000 00000000 00000000 00000000  |................|
000000C0   00000000 00000000 00000000 00000000  |................|
000000D0   00000000 00000000 00000000 00000000  |................|
000000E0   00000000 00000000 00000000 00000000  |................|
000000F0   00000000 00000000 00000000 00000000  |................|


Here is what was ran:

# cat chpvid
#!/usr/bin/ksh
pvid=$1
disk=$2
set -A a `echo $pvid|\
awk ' {
for (f=1; f <= length($0); f=f+2) {
print "ibase=16\nobase=8\n"toupper(substr($0,f,2))
}
}'|\
bc 2>/dev/null`
/usr/bin/echo "\0"${a[0]}"\0"${a[1]}"\0"${a[2]}"\0"${a[3]}"\0"\
${a[4]}"\0"${a[5]}"\0"${a[6]}"\0"${a[7]}"\0\0\0\0\0\0\0\0\c"|\
dd bs=1 seek=128 of=/dev/$disk
######

# ./chpvid 00ca7e300a28a36e vpath2
16+0 records in
16+0 records out


....still won't varyon.  Any other helpful hints before I blow it away
and go to TSM?  Anyone?


Thanks,
Frank
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic