Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

# /etc/vx/bin/vxmirror -g diskgroup -a
To configure VxVM to create mirrored volumes by default, use the following
command:
# vxmirror -d yes
If you make this change, you can still make unmirrored volumes by specifying
nmirror=1 as an attribute to the vxassist command. For example, to create an
unmirrored 20-gigabyte volume named nomirror in the disk group mydg, use the
following command:
# vxassist -g mydg make nomirror 20g nmirror=1
Mirroring volumes on a VM disk
Mirroring volumes creates one or more copies of your volumes on another disk.
By creating mirror copies of your volumes, you protect your volumes against loss
of data if a disk fails.
Note: This task only mirrors concatenated volumes. Volumes that are already
mirrored or that contain subdisks that reside on multiple disks are ignored
To mirror volumes on a disk
1
Make sure that the target disk has an equal or greater amount of space as the
source disk.
2
From the vxdiskadm main menu, select Mirror volumes on a disk .
3
At the prompt, enter the disk name of the disk that you wish to mirror:
Enter disk name [<disk>,list,q,?] mydg02
4
At the prompt, enter the target disk name (this disk must be the same size or
larger than the originating disk):
Enter destination disk [<disk>,list,q,?] (default: any) mydg01
Administering volumes
Adding a mirror to a volume
356