Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Creating a Volume Set
312 VERITAS Volume Manager Administrator’s Guide
Creating a Volume Set
To create a volume set for use by VERITAS File System (VxFS), use the following
command:
# vxvset [-g diskgroup] -t vxfs make volset volume
Here volset is the name of the volume set, and volume is the name of the first volume in the
volume set. The -t option defines the content handler subdirectory for the application
that is to be used with the volume. This subdirectory contains utilities that an application
uses to operate on the volume set. As the operation of these utilities is determined by the
requirements of the application and not by VxVM, it is not discussed further here.
For example, to create a volume set named myvset that contains the volume vol1, in the
disk group mydg, you would use the following command:
# vxvset -g mydg -t vxfs make myvset vol1
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
Caution 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.