1832528 Members
7738 Online
110043 Solutions
New Discussion

Re: Disk Mirroring

 
Judi Spaletto
Occasional Contributor

Disk Mirroring

How can I mirror a volume - I am looking to mirror volumes other than the root volume
Has anyone found white papers reguarding disk upgrades
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Disk Mirroring

You need to purchase/install a product called MirrorDisk/UX. After that, you can mirror any logical volume, root or non-root. Ideally, you mirror to disks on separate SCSI busses so that a failure of a controller, cable, or disk is easily tolerated. You can then fix the problem without even shutting down if you have hot-plug drives. The mirrors can be setup either through SAM or the command line interface.

If it ain't broke, I can fix that.
Paula J Frazer-Campbell
Honored Contributor

Re: Disk Mirroring

Hi

First extend the volume group - man vgextend

and then entent the logical volumes Man lvextend.

vgextend /dev/vgXX /dev/dsk/device

lvextend -m 1 /dev/vgXX/lvolXX /dev/dsk/device



Paula
If you can spell SysAdmin then you is one - anon
pap
Respected Contributor

Re: Disk Mirroring

Hi frst of all add a disk if not available on machine.
Then for mirroring LVM lvolx you have to give following command

lvextend -m 1 /dev/vgxx/lvolx /dev/dsk/cAtBdZ

where vgxx is the volume group under consideration.
/dev/dsk/cAtBdZ is the disk devicve name under consideration where you want to put your mirrored copy of Logical volume.

Similarly , do the same for all LVs.

MAke sure you have HP MirrorDisk/UX installed on the machine.

-pap
"Winners don't do different things , they do things differently"
Helen French
Honored Contributor

Re: Disk Mirroring

Hi Judi:

The LVM mirroring happens at the Logical Volume level and not in Volume group level. You need to purchase the Mirror/SW from HP, install the software and codewords. Then add the new disk to the existing volume, extend the LVs with:

# lvextend -m 1 lv_name new_pv_name

Check the mirror status with:

# lvdisplay lv_name

HTH,
Shiju
Life is a promise, fulfill it!
Carlos Vanegas
Occasional Advisor

Re: Disk Mirroring

If you only want to create a mirror in other disk, you can do that:

- Initialize new disk:

pvcreate -B /dev/rdsk/disknew

-Add the physical vol. to the VG

vgextend /dev/vgxx /dev/dsk/disknew

-Mirror the Logical volumes

lvextend -m 1 /dev/vgxx/lvol1 /devdsk/disknew

-Verify with:

lvdisplay -v /dev/vgxx/lvol1

Carlos V

Victor_5
Trusted Contributor

Re: Disk Mirroring

1. joining the pv into vg
#vgextend vg_name /dev/dsk/pv_name

2. mirroring the lv by using switch -m, say "1" for the copy
#lvextend -m 1 lv_name /dev/dsk/pv_name

Man vgextend and lvextend for more.