Operating System - HP-UX
1834007 Members
1794 Online
110063 Solutions
New Discussion

Re: problem with a mirrored disk

 
SOLVED
Go to solution
Luigi Manto
Occasional Contributor

problem with a mirrored disk

Hi all! I'm kind of new to HPUX and I already encountered a problem regarding my mirrored root disk. One of the two mirrored root disks failed. What are the step by step commands that I need to execute so that I could replace broken disk and restore mirroring in my vg00?

Do I also have to specify the same target address for the replacement? If not then what are the step by step commands that I need to execute? Thanks in advance!
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: problem with a mirrored disk

Hi Luigi:

The following procedure applies:

# Shutdown your system and replace the disk that is failing.

# Boot into single user mode and override the quorum, as:

# ISL> hpux -is -lq /stand/vmunix

# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtYdZ

# vgchange -a y /dev/vg00

# mount /usr

# mkboot /dev/rdsk/cXtYdZ

# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/CXtYdZ

# lvlnboot -R

# lvlnboot -v #...to verify all is as desired...

# vgsync /dev/vg00

# shutdown -ry 0

Regards!

...JRF...
Animesh Chakraborty
Honored Contributor

Re: problem with a mirrored disk

Hi,
I have a doubt here.
Does he require to split the mirror before shutdown and procced with JRF's steps ?
# lvreduce -m /dev/vg00/lvol${N} /dev/dsk/cXtYdZ

Then, 'vgreduce' the damage physical disk:

# vgreduce /dev/vg00 /dev/dsk/cXtYdZ
then follow JRF's steps

Best of luck
Animesh


Did you take a backup?
Patrick Wallek
Honored Contributor

Re: problem with a mirrored disk

For future reference for everyone -- There is absolutely no need to split mirrors when replacing a disk. You are doing unnecessary work.

JRF's steps work wonderfully. I've used those steps several times without any problems.
Scott Van Kalken
Esteemed Contributor

Re: problem with a mirrored disk

Yup, I agree - the key is the vgcfgrestore.