Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Removing a Volume from a Volume Set
314 VERITAS Volume Manager Administrator’s Guide
For the example given previously, the effect of running these commands on the
component volumes is shown below:
# vxvset -g mydg stop set1
# vxvset -g mydg list set1
VOLUME INDEX LENGTH KSTATE CONTEXT
vol1 0 12582912 DISABLED -
vol2 1 12582912 DISABLED -
vol3 2 12582912 DISABLED -
# vxvset -g mydg start set1
# vxvset -g mydg list set1
VOLUME INDEX LENGTH KSTATE CONTEXT
vol1 0 12582912 ENABLED -
vol2 1 12582912 ENABLED -
vol3 2 12582912 ENABLED -
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
Note When the final volume is removed, this deletes the volume set.
Caution 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.