1833776 Members
2174 Online
110063 Solutions
New Discussion

Re: Mirroring

 
Prakash.D
Occasional Contributor

Mirroring

Hi stuffs,

i am new to hpux but i have an idea about all thos basics but urgently i need steps to create a disk mirroring and it is not a boot disk,

Ecpecting your results soon,
5 REPLIES 5
Paul Senior_1
Frequent Advisor

Re: Mirroring


I assume you have mirrordisk installed:-

swlist | grep -i mirrordisk

lvextend is the command to use to create mirrors:-

lvcreate -m

usually you would put the mirror on a different controller to improve redundancy further.
Paul Senior_1
Frequent Advisor

Re: Mirroring

above entry should read

lvextend -m
Steven E. Protter
Exalted Contributor

Re: Mirroring

Shalom,

Correction to earlier command.



lvextend -m 1


That is all that need to be done if the logical volume already exists.

Note that LVM Mirror/UX is an optional product that must be paid for.

Aside: Hi Stuffs, what does that mean?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: Mirroring

Hello,

I assume you wish to set up software mirroring, in which case, your first step is to purchase Mirrordisk/UX, which adds functionality to LVM commands.

Then, for command specifics, see â Adding a Mirror to a Logical Volumeâ from the HP-UX SysAdmin Guide:

http://docs.hp.com/en/5991-6481/ch03s03.html#lvm.admin.addmirror

Basically, you add an '-m 1' option to 'lvcreate' or 'lvextend' after configuring the new physical volume.

PCS
Babu A
Frequent Advisor

Re: Mirroring

Make sure you have installed MirrorUX into the system. Assuming that you are using LVM, the following command can be used for mirroring.

Example:

To mirror a Logical Volume lvol1 in Volume group VG01 to the Physical Disk c10t4d0. Before executing pvcreate make sure that the disk is not used in any other volume groups.

# pvcreate /dev/rdsk/c10t4d0
# vgextend /dev/vg01 /dev/dsk/c10t4d0
# lvextend -m1 /dev/vg01/lvol1 /dev/dsk/c10t4d0

Babu