1752801 Members
5632 Online
108789 Solutions
New Discussion юеВ

mirroring

 
SOLVED
Go to solution
Vogra
Regular Advisor

mirroring

Hi All!
I have a A500 server running HPUX11.0 with two system disks. Now they don't have mirroring and I need to do it. How can I do this?
Thanx in advance.
We are spirits in the material world
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: mirroring

Hi Claudio:

First, MirrorDisk/UX needs to be licensed. Once you have the license (codeword), the product can be found on the Application CD. I believe it is on the first CD.

A full guide to mirroring can be found here:

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html

If you are attempting to mirror vg00, here is a summary of the steps:

# vgextend /dev/vg00 /dev/dsk/cXtYdZ
# mkboot /dev/rdsk/cXtYdZ #...note raw device...
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/cXtYdZ
# for N in 1 2 3 4 5 6 7 8 #...or more...
> do
> lvextend -m 1 /dev/vg00 /dev/dsk/cXtYdZ
> done
# lvlnboot -v #...a nice check...

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: mirroring

Hi Claudio:

First you need to install MirrorDisk/UX. Then execute vgdisplay -v vg00. Note the number of logical volumes defined. I've attached a script which will then mirror the typical configuration with 8 logical volumes. If you need more or less logical volumes the changes are obvious. You will need to set the RAW and COOKED device nodes to match your new mirror disk.
When you have run the script, I would try booting from the mirror. I would also issue a
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cXtYdZ where this device is your original boot disk. This will allow it to boot if the mirror fails.

Regards, Clay
If it ain't broke, I can fix that.
Magdi KAMAL
Respected Contributor

Re: mirroring

Hi Claudio,

You have to have MirrorX software.

If new disks
#pvcreate -f -B /dev/dsk/cXtYdZ

# vgextend /dev/vg00 /dev/dsk/cXtYdZ

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

lvextend -m 1 -A n /dev/vg00/lvol1 /dev/dsk/cXtYdZ
lvextend -m 1 -A n /dev/vg00/lvol2 /dev/dsk/cXtYdZ
lvextend -m 1 -A n /dev/vg00/lvol3 /dev/dsk/cXtYdZ

...

With such order issuing :
lvextend lvol1, lvol2, lvol3, ...
according to the base disk, you will have the mirror in a propre image to the base disk ( this avoid SPAGETTI between base and mirror ! ).

Magdi
Harinath N
Frequent Advisor

Re: mirroring

Hi Claudio,

Install the Mirror/UX on the system. Then take full details regarding the
current root VG(vg00) using "vgdisplay -v /dev/vg00".

Let's assume that the target disk is /dev/dsk/c0t5d0 and the root vg is with 8 lv's.

#pvcreate -B -f /dev/rdsk/c0t5d0
#mkboot /dev/rdsk/c2t13d0
#mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t5d0
#vgextend /dev/vg00 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t5d0
#lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t5d0
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -R

Hope this will help a bit.

Regards,
N.Harinath.