Operating System - HP-UX
1825775 Members
2263 Online
109687 Solutions
New Discussion

Replace a boot mirror disk

 
Toscanini Montaño
Occasional Advisor

Replace a boot mirror disk

Hi all,

I have a failed boot mirror disk on a rx1620 with 11.23.

How is the procedure to replace the bad disk without stop the system operation?

Thanks.
11 REPLIES 11
Carlos Roberto Schimidt
Regular Advisor

Re: Replace a boot mirror disk

Hi,

pvcreate -B /dev/rdsk/c1t0d0
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t0d0
# vgchange -a y /dev/vg00
# mkboot -a /dev/rdsk/c1t0d0
# mkboot -a "hpux -lq" /dev/rdsk/c1t0d0
# lvlnboot -R
# lvlnboot -v #(check).
# vgsync
# setboot #(check)
& check after rebooting.


melvyn burnard
Honored Contributor

Re: Replace a boot mirror disk

Take a read of the following document, it may help you with your questions:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Steven E. Protter
Exalted Contributor

Re: Replace a boot mirror disk

Shalom Toscanini,


Here is how I'd do it.

If possible, break the mirrors and vgreduce the volume group prior to doing the hot swap.

Do the hot swap dance.

Lets say the device is c2t0d0

pvcreate -B -f /dev/rdsk/c2t0d0


vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t0d0
vgchange -a y /dev/vg00
mkboot -a /dev/rdsk/c1t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
lvlnboot -R
lvlnboot -v


A full mirroring procedure, which you would do if you were successful in reducing the disk out of the volume group.


pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: Replace a boot mirror disk

please read section 6 in this document:

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

Don't forget to stop the disk access (pvchange -a n /dev/rdsk/cxtydz) and to initialize the disk partitions (idisk) like descripted in the manual.

It's NOT neccessary to do a "pvcreate"!

Please read the section "Mirroring the Root Volume on Integrity Servers" for how to make the disk bootable (copy EFI content and set boot string).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: Replace a boot mirror disk

Normally:

How to replace failed mirror of root disk


After failed disk has been replaced by HP (assuming the disk is c1t5d0):

vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t5d0

mkboot /dev/rdsk/c1t5d0

mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c1t5d0

vgchange -a y /dev/vg00

lvlnboot -Rv /dev/vg00

vgsync /dev/vg00

I attached steps to mirror root on Itanium.


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.
Torsten.
Acclaimed Contributor

Re: Replace a boot mirror disk

Take care and use only procedures for Integrety servers, not the procedures for PA-RISC based systems!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Andrew Rutter
Honored Contributor

Re: Replace a boot mirror disk

hi,

as its an itanium you need to partition the disk first with

#idisk

commands first before continuing with lvm commands.

then afterwards populate the 3rd partition(service) with diagnostics.

Andy

Sandman!
Honored Contributor

Re: Replace a boot mirror disk

Hi Toscanini,

Take a look at this document...it'll be helpful in providing the steps that you are trying to accomplish:

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

cheers!
Senthil Kumar .A_1
Honored Contributor

Re: Replace a boot mirror disk

Hi Montano,

RX1620 is a Itanium box. So the mirror of your boot disk is slightly different from the usual PA-RISC activity.

Firstly, I believe rx1620 will have a hot swappable disk. Just make sure, which disk is gone bad and locate the HDD bay with the help of RX1620 Hardware manual and H/W address. Once you replace the HDD, you need to do the following to restore the boot mirror...

For the explanatiuon I assume the replace disk is.../dev/dsk/c2t1d0

From the below link, execute the commands till STEP 4,

Now,


5) Initialize the LVM regions...

pvcreate -B /dev/rdsk/c2t1d0s2

6) Restore the LVm metadata's...

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0s2

7) activate vg00

vgchange -a y /dev/vg00

8) syncronize the LV's..

vgsync /dev/vg00
NOTE: the above action will take a while..

9) Recover the missing links if any..

lvlnboot -R

10) check the sanity..

vgdisplay -v vg00

When you get a down window, you can check by booting through the second disk, and confirm that all is fine..

Regards,
Senthil Kumar.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Replace a boot mirror disk

In the previous post..I forgot to provide the link.. here is the corrected version....

Hi Montano,

RX1620 is a Itanium box. So the mirror of your boot disk is slightly different from the usual PA-RISC activity.

Firstly, I believe rx1620 will have a hot swappable disk. Just make sure, which disk is gone bad and locate the HDD bay with the help of RX1620 Hardware manual and H/W address. Once you replace the HDD, you need to do the following to restore the boot mirror...

For the explanatiuon I assume the replace disk is.../dev/dsk/c2t1d0

From the below link, execute the commands till STEP 4,

http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html

Now,After step 4 of the above link...


5) Initialize the LVM regions...

pvcreate -B /dev/rdsk/c2t1d0s2

6) Restore the LVm metadata's...

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0s2

7) activate vg00

vgchange -a y /dev/vg00

8) syncronize the LV's..

vgsync /dev/vg00
NOTE: the above action will take a while..

9) Recover the missing links if any..

lvlnboot -R

10) check the sanity..

vgdisplay -v vg00

When you get a down window, you can check by booting through the second disk, and confirm that all is fine..

Regards,
Senthil Kumar.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Nguyen Anh Tien
Honored Contributor

Re: Replace a boot mirror disk

Pls note that boot disk creating procedure for Itanium is different with it for PARISC
these are some link you can refer to:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=907309
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=974862
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=885030
Hope these are enought for U.
tienna
HP is simple