HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

Disk mirror in HPUX 11.11

 
SOLVED
Go to solution
GB Tek
Valued Contributor

Disk mirror in HPUX 11.11

I want to mirror our system but did not see a way to do it in SAM. Is there a link to mirroring using the command line or using SAM to mirror the root drive?
Ask and you shall receive
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: Disk mirror in HPUX 11.11

Can't do that with SAM. This is the process I used (you got to have Mirror/UX installed) or you can take a look at Chapter16 (LVM) of the Software Recovery Handbook.

http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/Introduction.pdf

Mirroring Process
-----------------
o Assuming c1t2d0 is primary disk and c2t2d0 is the disk to be mirrored.
o Assuming (lvol1=/stand;lvol2=primary swap;lvol3=2ndary swap;lvol4=/;lvol5=/opt)

# swlist -l bundle| grep -i mirror
=> Make sure you have MirrorUX installed
# pvcreate -f -B /dev/rdsk/c2t2d0
# mkboot -l /dev/rdsk/c2t2d0
=> Create boot track (place boot utilities in boot area), -l means treat device as LVM disk.
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
=> Add AUTO file in boot LIF area, "lq" option is to bypass quorum check.
=> Repeat for primary disk (c1t2d0) as well.
# lifcp /dev/rdsk/c2t2d0:AUTO -
=> Check content of AUTO file. Repeat for primary disk (c1t2d0).
# vgextend /dev/vg00 /dev/dsk/c2t2d0
=> Adding disk to root VG.
# pvdisplay -v /dev/dsk/c2t2d0
=> Note of the order of LVs (assuming it's lvol1,lvol2,lvol3,lvol4 & lvol5)
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
=> Repeat for lvol2->lvol5
# lvlnboot -r /dev/vg00/lvol4 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
=> Update BDRA (root, boot, swap and dump)
# lvlnboot -v
=> Check to make sure both disks are listed for root, boot and swap definition.
# setboot
=> Display boot path.
# setboot -a 0/0/2/0.2.0
=> Change alternate boot path to mirrored disk.
# shutdown -r -y 0
=> Interrupt upon bootup and select alt path to boot from in order to test.

Installing ODE (Offline Diagnostics)
------------------------------------
# ll /usr/sbin/diag/lif/updatediaglif
=> Make sure the file exist.
# lifls -l /dev/rdsk/c2t2d0
=> List content of LIF dir (should have ISL,AUTO,HPUX,PAD,LABEL).
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t2d0
=> Install ODE LIF files while "protecting" the existing LIF files.
=> Use updatediaglif2 for 11.0 64-bit.
# lifls -l /dev/rdsk/c2t2d0
=> Should now see the additional LIF files.

If your primary boot disk has the ODE LIF files you have got to go through the ODE installation for your mirrorred disk as well.

Ricardo Rocha
Valued Contributor

Re: Disk mirror in HPUX 11.11

Hi

here it goes

Create the physical volume of the new disk
# pvcreate -f -B /dev/rdsk/cXtYdZ -> disk where you want to put the mirror in

Create a bootable space on the disk
# mkboot -l /dev/rdsk/cXtYdZ

# mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/cXtYdZ

Extend vg00 into the new disk
# vgextend /dev/vg00 /dev/dsk/cXtYdZ

Create the mirrors of the lvolumes
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cXtYdZ

#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cXtYdZ

#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cXtYdZ

and the remaining lvolumes (these 3 ones must be in this order)

Put it as a bootable disk

#lvlnboot -b /dev/vg00/lvol1 -> boot

#lvlnboot -s /dev/vg00/lvol2 -> swap

#lvlnboot -r /dev/vg00/lvol3 -> root

#lvlnboot -R

Verify everything is ok

# lvlnboot -v

And save config of vg00

# vgcfgbackup vg00




Bye


"there is this old man who spent so much of his life sleeping that he is able to keep awake for the rest of his years"
GB Tek
Valued Contributor

Re: Disk mirror in HPUX 11.11

Is Mirror-UX part of the install cd set? I loaded all apps but don't see it loaded when I run the swlist ... command.
Ask and you shall receive
S.K. Chan
Honored Contributor
Solution

Re: Disk mirror in HPUX 11.11

It's not. MirrorUX is a licensed software. You'll have to purchase it and then apply for the codeword to unlock it from the apps CD. If you have it installed it should show something like this.
# swlist -l bundle|grep -i mirror
B2491BA B.11.00 MirrorDisk/UX
GB Tek
Valued Contributor

Re: Disk mirror in HPUX 11.11

thanks
Ask and you shall receive