Operating System - HP-UX
1837257 Members
2401 Online
110115 Solutions
New Discussion

Re: Mirroring a boot drive

 
John_44
Advisor

Mirroring a boot drive

Hello Everyone,

I have a server with no mirror on the boot drive. I have the mirror disk software installed so I am going to mirror the boot drive after the disk is installed. These are the steps I am going to take. I just want to make sure they are correct before I do this. Also, if there is anything I can do better please let me know. Thank you in advance and I will assign points.

John B.


Where cXtXdX is the new disk

1/ pvcreate -B /dev/rdsk/cXtXdX

2/ vgextend /dev/vg00 /dev/dsk/cXtXdX

3/ mkboot /dev/rdsk/cXtXdX
mkboot -a "hpux" /dev/rdsk/cXtXdX
lifcp /dev/rdsk/cXtXdX:AUTO -
^== To verify the contents of the auto file

4/pvdisplay -v /dev/dsk/c0t6d0
^== To check the order of the LVs on the original disk

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/cXtXdX
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/cXtXdX

pvdisplay -v /dev/dsk/cXtXdX
^== To make sure they are in proper order on the new disk

5/ setboot -a "Hardware Address of New Disk"
setboot
^== To check that the path is set correctly

6/ 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 -v ( check output again)

7/ Shutdown interrupt PDC and boot from the alternate mirror.

8/ If successful change the auto file on the original disk

mkboot -a "hpux -lq" /dev/rdsk/c0t6d0
lifcp /dev/rdsk/c0t6d0:AUTO -
^== To verify the contents of the auto file.

9 Shutdown and boot off the primary.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Mirroring a boot drive

John,

Comparing it to the steps in my LVM/MirrorDisk course book, your plan looks perfect.

Good Luck,
Pete

Pete
Sandip Ghosh
Honored Contributor

Re: Mirroring a boot drive

You do not need the stape 5 and 8 . If you still go for that you need not to interupt the boot process to change it to alternate disk because you are doing the same thing by giving setboot command.

Sandip
Good Luck!!!
S.K. Chan
Honored Contributor

Re: Mirroring a boot drive

Looks good .. one more thing though .. you might want to check if you have ODE (Offline Diagnostics) LIF files install on the primary boot disk. They would be the ones which are NOT .. "ISL, AUTO, HPUX, PAD, LABEL" .. If they are then you need these additional steps ..
# ll /usr/sbin/diag/lif/updatediaglif
=> Make sure the file exist.
# lifls -l /dev/rdsk/
=> List content of LIF dir (should have ISL,AUTO,HPUX,PAD,LABEL at least).
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/
=> Install ODE LIF files while "protecting" the existing LIF files.
=> Use updatediaglif2 for 11.0 64-bit.
# lifls -l /dev/rdsk/
=> Should now see the additional LIF files.
PIYUSH D. PATEL
Honored Contributor

Re: Mirroring a boot drive

Hi,

Your steps are right and you dont need steps 5 and 8.

ALL THE BEST.

Piyush
Helen French
Honored Contributor

Re: Mirroring a boot drive

Your steps looks good to me. However I would do some little changes like this:

1) Use 'hpux -lq' when invoking mkboot -a (at first step itself)

2) Before step-6, I would check the output of:

# lvlnboot -v

Becuase, the new versions of OSs will automatically update this information and thus doesn't require the step-6.

3) If step-6 is needed, then I would do:

# lvlnboot -R (at the last and then check the output of lvlnboot -v)
Life is a promise, fulfill it!

Re: Mirroring a boot drive

John,

You have recieved some excellent advise, dont forget to add your new disk to /stand/bootconf.
Just edit the /stand/bootconf file and add a line for the new disk:

l /dev/dsk/c#t#d#

-------------------------------------------

Best regards,

Everett Stroman
harry d brown jr
Honored Contributor

Re: Mirroring a boot drive

John,

BEFORE you start, Please do a make_tape_recovery!

Second, why would you reboot the server from the primary, when you are already running from the primary? Do you plan on changing the primary to the new disk?

Third, make sure you have the lastest patch bundle installed.

Last, do ANOTHER make_tape_recovery with ANOTHER tape.

live free or die
harry
Live Free or Die