Operating System - HP-UX
1834391 Members
1760 Online
110066 Solutions
New Discussion

Replacing the root mirror disk

 
Rg_4
Advisor

Replacing the root mirror disk

Hi all,

Is it possible to replace root mirrored disk uisng the below mentioned procedure. Pls guide me if there is any mistake.

1. pvchange -a n
2. vgcfgrestore
3. pvchange -a y
4. mkboot
5. lvlnboot -R

Thanks in adv,
Ragesh
6 REPLIES 6
Matti_Kurkela
Honored Contributor

Re: Replacing the root mirror disk

At first glance, it seems it's maybe OK for PA-RISC systems, but not for Itanium.

With Itanium systems, you'll need to re-create the disk partitions (slices), restore the EFI bootloader to s1, then apply your procedure to s2.

The standard procedures are documented in the "When Good Disks Go Bad" whitepaper:

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

See Appendix D for detailed root mirror replacement procedures, for both Itanium and PA-RISC servers.

MK
MK
Rg_4
Advisor

Re: Replacing the root mirror disk

Hi MK,

After failed disk has been replaced, is pvcreate is required to run on it ?

Ragesh
Patrick Wallek
Honored Contributor

Re: Replacing the root mirror disk

>>After failed disk has been replaced, is pvcreate is required to run on it ?

No, vgcfgrestore takes care of that.
vishnu.khandare
Respected Contributor

Re: Replacing the root mirror disk

Do this..

1.pvchange -a N /dev/disk/diskXX_p2
2.pvchange -a N /dev/disk/diskXX
Replace the disk
3.scsimgr replace_wwid â D /dev/rdisk/diskXX
4.ioscan â m lun
5.io_redirect_dsf -d /dev/disk/diskXX -n /dev/disk/diskXX
here aftre -n give new path where it changed to
6.ioscan â m lun /dev/disk/diskXX
7.vgcfgrestore -n /dev/vg00 /dev/rdisk/diskXX_p2

This will restore the vg00 and u will get mirrored root disk, it take time to sync
You should deserve before U desire!!!!
haux
Advisor

Re: Replacing the root mirror disk

hello,

here you find how to remplace your root mirrored disk for Itanium CPU, I have used IT several times and it works perfectly

http://www.r71.nl/kb/technical/231-hpux-itanium-replace-mirrored-boot-disk

just be informed that its not the same for the PARISC CPU

Regards.