VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Adding Mirrors to a Volume
64 VERITAS Storage Foundation ISP Administrators Guide
Adding Mirrors to a Volume
To add mirrors to an existing volume, use the following command:
# vxvoladm [-g diskgroup] [-b] add mirror volume \
[nmirrors=number] [attributes...]
By default, one mirror is added. You can use the nmirrors attribute to specify the number of
mirrors to add. If specified, the -b option performs the synchronization of the new mirrors in the
background. You can also use storage attributes to specify the storage to be used for the mirrors.
For example, the following command adds a mirror to the volume, mirvol1, using disk mydg01:
# vxvoladm -g mydg -b add mirror mirvol1 \
use_storage=’"DM"="mydg01"’
Removing Mirrors from a Volume
To remove mirrors from a volume, use the following command:
# vxvoladm [-g diskgroup] [-f] remove mirror volume \
[nmirrors=number] [attributes...]
By default, one mirror is removed. You can use the nmirrors attribute to specify the number of
mirrors to remove. You can use storage attributes to specify the storage to be removed. For
example, the following example removes the mirror on the disk mydg01, from the volume
mirvol1:
# vxvoladm -g mydg remove mirror mirvol1 \
remove_storage=’"DM"="mydg01"’
Note If you use the vxvoladm command to remove mirrors, you must specify the -f (force)
option to the command if the operation would violate any rules. For example, the rules may
imply that a volume must have minimum number of mirrors of a particular kind.
Adding Columns to a Volume
To add columns to a striped or RAID-5 volume, use the following command:
# vxvoladm [-g diskgroup] [-b] add column volume ncols=number \
[tmplen=length] [attributes...]
The ncols attribute specifies the number of columns to add. You can use storage attributes to
specify the storage to be used for the columns. If specified, the -b option adds the columns in the
background.