Operating System - HP-UX
1833829 Members
2109 Online
110063 Solutions
New Discussion

Re: failed mirrored disk in VG00

 
SOLVED
Go to solution
Mark Harshman_1
Regular Advisor

failed mirrored disk in VG00

OK, i have an L2000 running HPUX11i. I have a 2 disk mirrored vg00, with one of the disk gone bad. the lv's are showing stale. My vgdisplay now only shows one disk defined to the volume group, however. My lvmtab still shows both for the vg00. I pulled the bad disk and re-inserted, and now i can do a diskinfo on it. I was hoping to get it to work long enough to drop but no luck so far. I've tried vgcfgrestore, vgsync, vgreduce, lvreduce....nothing is working. Any other ideas? i'd prefer not to have to reboot at this time if possible.
thanks alot.
Never underestimate the power of stupid people in large groups
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: failed mirrored disk in VG00

Mark,

You need to replace the bad disk, then run vgcfgrestore, mkboot, and vgsync.


Pete

Pete
Mark Harshman_1
Regular Advisor

Re: failed mirrored disk in VG00

ok i did the vgcfgrestore, and the mkboot, and the vgsync but still no good. the disk has not been added back to the VG. I get an error on the vgsync that it cannot synce the first lv. any other ideas?
Never underestimate the power of stupid people in large groups
Torsten.
Acclaimed Contributor
Solution

Re: failed mirrored disk in VG00

All you need is here:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

You have to do the correct steps in a correct order. After restoring the information (vgcfgrestore) you have to re-activate the vg (vgchange -a y vg00). I assume your system is not able to activate the PV yet (pvchange -a y ...). Now check with vgdisplay -v vg00. This will display both disks. Now you are able to do the other commands (mkboot, vgsync) - good luck!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tiziano Contorno _
Valued Contributor

Re: failed mirrored disk in VG00

You said "bad" disk is no more part of vg00.

You may try to "restore" vg00 manually:

pvcreate -fB the "bad" disk
vgextend vg00 with the "bad" disc
mkboot bad disk
mkboot -a "hpux -lq" bad disk
lvextend -m 1 each lvol in the right order
lvlnboot -R /dev/vg00

I had a failed disk that could be read by dd and could be queried by diskinfo...

Regards.
Torsten.
Acclaimed Contributor

Re: failed mirrored disk in VG00

Don't do a "pvcreate" - you will have more trouble.

The disk will disappear from the vgdisplay after a reboot - this is normal.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mark Harshman_1
Regular Advisor

Re: failed mirrored disk in VG00

Tortsen had my missing step. the vgchange after the vgcfgrestore fixed my ticket. thanks to all.
Never underestimate the power of stupid people in large groups