Operating System - HP-UX
1851678 Members
5011 Online
104061 Solutions
New Discussion

Replacing Primary OS drive.

 
SOLVED
Go to solution
John Goetz
Advisor

Replacing Primary OS drive.

I need to replace my primary OS drive on a rp7420 running 11.11. The drive is mirrored to an alternate drive. What is the best way of going about this?
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: Replacing Primary OS drive.


read chapter 4

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073905420

live free or die
harry d brown jr
Live Free or Die
Peter Godron
Honored Contributor

Re: Replacing Primary OS drive.

John,
the basic principle:
1. break mirror
2. replace bad disk
3. prepare new disk
4. Sync
For a more detailed instruction you could start with:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=182948
Regards
A. Clay Stephenson
Acclaimed Contributor

Re: Replacing Primary OS drive.

There is no need to shutdown or break mirrors. I literally have not shutdown in years to replace a failed disk. First for every lvol in vg00 do an lvdisplay -v and make sure that all the extents in the remaining good drive are "current". If the drive drive is completely failed, pull it out. If the drive is flaky, pull the bad drive out a few centimeters and let it spin down --- then wait a few tens of seconds to convert the flaky drive to a failed drive.

Let's assume your bad drive is c0t6d0.

vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c0t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t6d0
lvlnboot -R
vgsync /dev/vg00

The vgsync will take some time to complete. When finished check each lvol with lvdisplay -v to make sure all extents all "current" on all PV's.
If it ain't broke, I can fix that.
Peter Godron
Honored Contributor

Re: Replacing Primary OS drive.

John,
have you completed the replacement.
What did you do in the end?
Any problems?
Thanks