1833187 Members
2806 Online
110051 Solutions
New Discussion

Re: disk mirror

 
shdeshpande
New Member

disk mirror

how to disk mirroring in Unix 11i
5 REPLIES 5
shridhar_1
Frequent Advisor

Re: disk mirror

hi

you nead mirror ux installed on HPUX 11.11i

read this

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

the command is

lvextend -m 1 /dev/vgxx/lvol /dev/dsk/cxtxdx

please refer
man lvextend

please refer previous threads
just type mirror and search
you will find many threads

HTH

shri
Devender Khatana
Honored Contributor

Re: disk mirror

Hi,

Which OE of 11i are you having?

If it is MCOE then mirror-Ux is part of the OS and do not need any extra license.

For mirroring you can opt various options depending upon requirement. Importantly what you want to mirror? Is it OS,or data that too of what sort?

HTH,
Devender
Impossible itself mentions "I m possible"
Asif Sharif
Honored Contributor

Re: disk mirror

Hi shdeshpande,

There are few steps to mirror the root disks.First of all you must have mirror UX software installed on your machine then follow these steps.

Suppose /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. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/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

or you can simply run the attached script for mirroring.

Regards,

Asif Sharif
Regards,
Asif Sharif
Bharat Katkar
Honored Contributor

Re: disk mirror

Asif has attached a very nice sript on mirroring.
Also find attached one more doc for mirroring.
Thought it could be helpful.

Regards
You need to know a lot to actually know how little you know
Cem Tugrul
Esteemed Contributor

Re: disk mirror

Hello,
As an additon to other replies try to have a
look of the attachment.
Good Luck,

Our greatest duty in this life is to help others. And please, if you can't