Operating System - HP-UX
1837724 Members
3038 Online
110118 Solutions
New Discussion

Re: Root disk replacement

 
AIMC
Frequent Advisor

Root disk replacement

Hi,

In a HP rp8420, can a failed mirrored root disk be replaced online?

In general can a mirrored root disk be replaced online if the disk is hot pluggable?

Aidan
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Root disk replacement

Aidan,

Absolutely, that's the whole point. Swap the new disk in, run vgcfgrestore, then vgchange -a y vg00, then vgsync and you're home free!


Pete

Pete
Geoff Wild
Honored Contributor

Re: Root disk replacement

Yes and yes.

1) If the disk is completely "dead", such as if you run ioscan and status is "no_hw" then you can hot swap the disk online.

2) However in circumstances where the disk has not fully failed please do one of the following to avoid data corruption :

a) reduce mirror before replacing the disk
b) deactivate VG before replacing the disk
c) shutdown system to replace the disk

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ashwani Kashyap
Honored Contributor

Re: Root disk replacement

A. Clay Stephenson
Acclaimed Contributor

Re: Root disk replacement

Yes and yes. I have not shutdown to replace a failed disk in at least 5 years and I done many, many disk swaps over that time.

For a disk that has not failed completely, I find that if I do an lvdisplay -v to confirm that all the extents are current on the good disk for all the LVOLS in question then I simply unplug the flaky drive and wait a minute or so. You now have a completely failed disk and can replace without doing a vgreduce.

I make it a practice to keep spare drives on hand eventhough I am on full HP support; in fact, my last action is to place the support call to get a replacement for my spare drive.

If it ain't broke, I can fix that.
YoungHwan, Ko
Valued Contributor

Re: Root disk replacement

1. Remove the Mirror State.
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c#t#d#
# lvreduce -m 0 /dev/vg00 /dev/dsk/c#t#d#
.
.
# vgreduce /dev/vg00 /dev/dsk/c#t#d#

2. Confirm the lmvtab file.
# strings /etc/lvmtab

3. Activates the Volume group.
# vgchange -a y vg00

4. Sync the Volume group.
# vgsync vg00