Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

Adding a mirror to a volume
You can add a mirror to a volume with the vxassist command, as follows:
# vxassist [-b] [-g diskgroup] mirror volume
Specifying the -b option makes synchronizing the new mirror a background task.
For example, to create a mirror of the volume voltest in the disk group, mydg,
use the following command:
# vxassist -b -g mydg mirror voltest
You can also mirror a volume by creating a plex and then attaching it to a volume
using the following commands:
# vxmake [-g diskgroup] plex plex sd=subdisk ...
# vxplex [-g diskgroup] att volume plex
Mirroring all volumes
To mirror all volumes in a disk group to available disk space, use the following
command:
# /etc/vx/bin/vxmirror -g diskgroup -a
To configure VxVM to create mirrored volumes by default, use the following
command:
# /etc/vx/bin/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
315Administering volumes
Adding a mirror to a volume