1839257 Members
2859 Online
110137 Solutions
New Discussion

mirror the OS disk

 
SOLVED
Go to solution
Rommel T. Misa
Occasional Contributor

mirror the OS disk

Hi guys,

How could I mirror the OS disk (vg00) in HP-UX 11i? Could I also boot from this mirror copy?

Thanks.

Rommel
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: mirror the OS disk

Hi Rommel,

Just search for
"mirror root" in the search box at the top of this page. There have been numerous threads on it.

There isn't much difference from 11.0 to 11i as far as how the mirroring is done.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Joseph Loo
Honored Contributor
Solution

Re: mirror the OS disk

hi,

u need MirrorUX installed in the server which needs mirroring and it is not free.

read the Techical KB doc, LVMKBRC00005103 or:

http://www1.itrc.hp.com/service/cki/search.do?category=c0&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=lvmkbrc00005103&mode=id&admit=-682735245+1087439123353+28353475&searchCrit=allwords

regards.
(p.s. remember to assign points, your track record is not exactly outstanding, 0 of 20 assigned and counting)
what you do not see does not mean you should not believe
Geoff Wild
Honored Contributor

Re: mirror the OS disk

You need mirror disk U/X software - then follow the procedure attached.


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.
Edgar_8
Regular Advisor

Re: mirror the OS disk

Hi Rommel,

If you have confirmed that you have mirror-UX on your system, follow the below procedure:

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.

# pvcreate -B /dev/rdsk/c3t6d0


2. Make the new disk a boot disk.

# mkboot -l /dev/rdsk/c3t6d0

3. Copy the correct AUTO file into the new LIF area.

# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c3t6d0
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c3t6d0

4. Add this disk to the current root volume group.

# vgextend /dev/vg00 /dev/dsk/c3t6d0

5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0

The following is an example of mirroring the primary swap logical
volume:

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

The following is an example of mirroring the root logical volume:

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

6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.

# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
# /usr/sbin/lvlnboot -r /dev/vg00/lvol3

7. Check if the BDRA is correct.

# /usr/sbin/lvlnboot -R /dev/vg00

8. Verify that the mirrors were properly created.

# lvlnboot -v /dev/vg00

The output of this command is shown in a display like the following:

Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

vgdisplay -v vg00

Then lvextend for all other lvols:

# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
# lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0

9. check boot path

# setboot
# setboot -a /dev/dsk/c3t6d0

all the best.

sinhass
Regular Advisor

Re: mirror the OS disk

hp-ux 11i which version. If it is 11.22/23 for Itanium server U have to follow different procedure than normal. Search mirror itanium server hp-ux or just read this link
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html
-sinhass