Saturday, August 22, 2009

MIRRORING A LOGICAL VOLUME

MIRRORING A LOGICAL VOLUME

Step 1: Check whether there are sufficient disks for mirroring

# vgdisplay -v /dev/vg01 | grep "PV Name"

PV Name /dev/dsk/c0t9d0

PV Name /dev/dsk/c0t10d0

# lvdisplay /dev/vg01/lvol01 | grep Mirror

Mirror copies 0

# lvextend -m 1 /dev/vg01/lvol01

The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....

Logical volume "/dev/vg01/lvol01" has been successfully extended.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Step 2: Check Mirror Copies

# lvdisplay /dev/vg01/lvol01 | grep Mirror

Mirror copies 1

No comments:

Post a Comment