Operating System - HP-UX
1838681 Members
3579 Online
110128 Solutions
New Discussion

Re: Replacing boot disk!!

 
Amit Manna_6
Regular Advisor

Replacing boot disk!!

Hi
Can anybody please let me know the procedure for replacing boot disk in HP?
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Replacing boot disk!!

RAC_1
Honored Contributor

Re: Replacing boot disk!!

Do you have LVM cook book?? It has all details. Was it mirrored?? If disk is hot swapable, replace it and you need to do vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtxdx, vgchange -a y vg00, mkboot and vgsync.

Check with lvlnboot.

Anil.
There is no substitute to HARDWORK
DCE
Honored Contributor

Re: Replacing boot disk!!


Assumming the drive is hot swappable:


Replace disk

vgcfgrestore â n /vg00 /dev/rdsk/c1t15d0
vgsync /dev/vg00
mkboot â b /dev/rdsk/c3t15d0 /dev/rdsk/c1t15d0
mkboot â a â hpux-lqâ /dev/rdsk/c1t15d0
lifcp /dev/rdsk/c1t15d0:AUTO â
lvlnboo

Re: Replacing boot disk!!

Hi,
If you don't have mirror disk, and you have the ignite tape, so u have only to raplace ur hard disk and boot from tape and u follow the procedure.
I assume that u know ow to create the ignite tape:
# make_tape_recovery -a /dev/rmt/Xm -AvI
/dev/rmt/Xm is the tape device file.

bye.
KVK
Valued Contributor

Re: Replacing boot disk!!

Hello Amit,

If your problem resolved please spend some 2 sec to assign the points to who helps out for your problem .

You have assigned 44 of 278 which it looks not good

vinod_25
Valued Contributor

Re: Replacing boot disk!!

hi amit

do you mean to say : how to replace a mirrored root disk? then

/dev/dsk/c1t2d0 is the disk u changed in a root mirrored vg... the steps are as follows..

1)boot in lvm maintenance mode
ISL> hpux -lm
2)do vgcfgrestore to restore LVM config data from config backup to Pv
# vgcfgrestore -n vg00 /dev/rdsk/c1t2d0
3)Activate the Vg
# vgchange -a y vg00
4)use mkboot to put boot utilities and Auto file in LIF area
# mkboot -l /dev/rdsk/c1t1d0
# mkboot -a "hpux" /dev/rdsk/c1t1d0
5)use lvlnboot
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -R
# lvlnboot -v
6) remirror using vgsync
# vgsync
7) Reboot the server in multiuser mode
8) check successful completion by
# lvdisplay -v /dev/vg00/lvolZ
# vgdisplay -v vg00


Regards

Vinod K
Devender Khatana
Honored Contributor

Re: Replacing boot disk!!

Hi,

If the disk was a mirrored root disk prior to going for replacing if the disk is still acessible ensure there are no stale extents & there are no partitions which lies only on this disk without mirror. Normally one can have unmirrored swap partitions if the demand for swap is more.

HTH,
Devender
Impossible itself mentions "I m possible"
PVR
Valued Contributor

Re: Replacing boot disk!!

Do you have the mirrored copy of boot disk ?

If yes, you can go ahead with steps suggestd by Vinod wih small change to make the server bootable even if it fails to meet the quorum requirement.

mkboot -a "hpux -lq" /dev/rdsk/c1t1d0.

If you don't have a mirror copy, better start the insallation from the ignite backup.



Don't give up. Try till success...
Sudeesh
Respected Contributor

Re: Replacing boot disk!!

You can use the following steps to replace a hot-swappable boot disk on PARISC.

1. Remove the failed disk from bay and insert the new disk.

2. ioscan -H : to claim the disk.

3. mv /etc/lvmtab /etc/lvmtab.old : to avoid pvcreate fail on the new disk.

4. pvcreate -B /dev/rdsk/c_t_d0 :
Create the physical volume on new disk

5. mv /etc/lvmtab.old /etc/lvmtab : Restore original lvmtab

6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0

7. vgchange -a y /dev/vg00

8. vgsync vg00 : only if automatic sync is not happening.

9. mkboot /dev/rdsk/c_t_d0

10. mkboot -a "hpux -lq" /dev/rdsk/c_t_d0

11. lvlnboot -Rv /dev/vg00

12. lvdisplay -v /dev/vg00/lvol* : Verify all the extends are current.


Hope this helps

Sudeesh
The most predictable thing in life is its unpredictability