Operating System - HP-UX
1753263 Members
4929 Online
108792 Solutions
New Discussion юеВ

replacing a mirror root disk

 
ajin
Frequent Advisor

replacing a mirror root disk

Please tell me what is the procedure of replacing a mirror root disk in HPUX 11.0
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: replacing a mirror root disk

See if you can get to this document:

When Good Disks Go Bad: Dealing with Disk Failures under LVM (HP-UX 11 v1, 11 v2)
http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


I have been having trouble seeing it tonight, but I'm not sure if it is my problem or HP's problem.
YAQUB_1
Respected Contributor
yulianto piyut
Valued Contributor

Re: replacing a mirror root disk

Hi,

I have same case with u and there are some command I used to replace may primary root disk:


1. try to break mirror, but failed
2. unplug the bad disk
3. plug the new disk:

# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t0d0
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c0t0d0",
Detach the PV or detactivate the VG, before restoring the PV.
# pvchange -a n /dev/dsk/c0t0d0
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t0d0
# pvchange -a y /dev/dsk/c0t0d0
# vgchange -a y /dev/vg00
# mkboot -l /dev/dsk/c0t0d0
# mkboot -a "hpux -lq" /dev/rdsk/c0t0d0
# lvlnboot -R --> vg automaticaly sync data
# lvsync /dev/vg00/lvol1
# lvsync /dev/vg00/lvol2
# lvsync /dev/vg00/lvol3
# lvsync /dev/vg00/lvol4
# lvsync /dev/vg00/lvol5
# lvsync /dev/vg00/lvol6
# lvsync /dev/vg00/lvol7
# lvsync /dev/vg00/lvol8
# lvsync /dev/vg00/lvol9
# lvsync /dev/vg00/lvol10