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

Adding a volume to a volume set
Having created a volume set containing a single volume, you can use the following
command to add further volumes to the volume set:
# vxvset [-g diskgroup] [-f] addvol volset
volume
For example, to add the volume vol2, to the volume set myvset, use the following
command:
# vxvset -g mydg addvol myvset vol2
Warning: The -f (force) option must be specified if the volume being added, or
any volume in the volume set, is either a snapshot or the parent of a snapshot.
Using this option can potentially cause inconsistencies in a snapshot hierarchy
if any of the volumes involved in the operation is already in a snapshot chain.
Removing a volume from a volume set
To remove a component volume from a volume set, use the following command:
# vxvset [-g diskgroup] [-f] rmvol volset
volume
For example, the following commands remove the volumes, vol1 and vol2, from
the volume set myvset:
# vxvset -g mydg rmvol myvset vol1
# vxvset -g mydg rmvol myvset vol2
Removing the final volume deletes the volume set.
Warning: The -f (force) option must be specified if the volume being removed, or
any volume in the volume set, is either a snapshot or the parent of a snapshot.
Using this option can potentially cause inconsistencies in a snapshot hierarchy
if any of the volumes involved in the operation is already in a snapshot chain.
Listing details of volume sets
To list the details of the component volumes of a volume set, use the following
command:
387Creating and administering volume sets
Adding a volume to a volume set