Mirror question

 
SOLVED
Go to solution
castro_2
Regular Advisor

Mirror question

I have a vg00 with 2 disk, Can I mirror whith another 2 disks?
And my swap has 2 logical volumen /dev/vg00/lvol2 /dev/vg00/lvol9
Thanks
12 REPLIES 12
Pete Randall
Outstanding Contributor
Solution

Re: Mirror question

Assuming you have the MirrorDisk/UX product installed, yes. Add the two disks to vg00, then mirror each individual lvol with lvextend -m 1.

Pete

Pete
Jerome Baron
Respected Contributor

Re: Mirror question

Hi,

To mirror your vg00 :
- vgextend /dev/vg00 /dev/dsk/cxtydz
(cxtydz is the disk device file)
- lvextent -m 1 /dev/vg00/lvolI
For all lvol in the vg.

Regards,
Jerome
James R. Ferguson
Acclaimed Contributor

Re: Mirror question

Hi:

MirrorDisk/UX implements mirroring at the logical volume level. For vg00, make you mirror, at least, lvol1, lvol2 and lvol3 first, and in that order.

Regards!

...JRF...
Armin Feller
Honored Contributor

Re: Mirror question

Mirror the root disk (vg00):

swlist -l fileset | grep -i mirror

# pvcreate -B /dev/rdsk/c...
# pvcreate -B /dev/rdsk/c...

# vgextend vg00 /dev/dsk/c... /dev/dsk/c...

# mkboot -l /dev/rdsk/c...
# mkboot -a "hpux -lq" /dev/rdsk/...
# lifcp /dev/rdsk/c...:AUTO -
# setboot -a 8/0/19/0.5.0

# lvextend -m 1 /dev/vg00/lvol1
# lvextend -m 1 /dev/vg00/lvol2
# lvextend -m 1 /dev/vg00/lvol3
...
in this order

# 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

Regards ...
Armin
Ravi_8
Honored Contributor

Re: Mirror question

Hi,

You can do mirroring provided you have MirrorDisk product installed,

perform mirroring only for useful filesystem ( don't consider swap, tmp)
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtxdx
never give up
James R. Ferguson
Acclaimed Contributor

Re: Mirror question

Hi (again) Castro:

I should clarify my post, so not to be misunderstood. For a viable mirror of vg00 you need to maks sure you mirror lvol1, lvol2 and lvol3 in that order. You *should*, mirror all logcial volumes of vg00, however. This makes recovery of a failed disk the easiest.

In additon, make sure to set a low-quorum on the mirrowed disk as well as the original:

# mkboot ???a "hpux ???lq" /dev/rdsk/cXtYdZ

...and set the new mirrored disk as an alternate boot disk:

# setboot ???a [alternate_path]

Regards!

...JRF...

castro_2
Regular Advisor

Re: Mirror question

Yes I have MirrorDisk.
ANd with the swap?
T. M. Louah
Esteemed Contributor

Re: Mirror question

PLS note that Mirroring is only tested at boot time, make sure it works !!

# shutdown -ry 0

The system will shut down and reboot. As the system starts to come back up, look for the message (system's output may vary):

TO INTERRUPT THE BOOT SEQUENCE, PRESS ...

Interrupt the boot sequence. This will display the Boot Admin display. At the boot_admin> prompt type:

bo Mirror_disk_hardware_address or
bo alt

if the alternate boot device has been configured. The system will prompt to interact with IPL, answer 'no', and the system will boot from the mirror root disk.


Cheers,
PAP! (a.k.a. Pliz assign Points )

Little learning is dangerous!
Trond Haugen
Honored Contributor

Re: Mirror question

Having your question answered already I would just like to add that you can mirror to ONE other disk.
The roule is that you must mirror to another disk. If you r vg00 is made up of say two 9Gb disk, you could mirror to one 18Gb disk.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn