Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

65Creating application volumes
Creating volumes
Creating volumes by using vxassist specification attributes
In release 5.0 of VxVM, it is possible to use the vxassist command to create ISP
volumes (for which intent is preserved) in addition to non-ISP volumes (for
which intent has no meaning). The
vxassist command now accepts the same
specification of templates, capabilities and rules as the
vxvoladm command, and
a set of
vxassist storage specification attributes are automatically translated
into equivalent ISP rules.
See “Equivalences between vxassist attributes and ISP rules” on page 201.
If the
-o intent option is specified, vxassist creates an ISP volume, and it also
sets up a storage pool in the disk group if one does not already exist. If a storage
pool already exists in a disk group, the vxassist command attempts to create an
ISP volume unless you specify the
-o nointent option.
The following are examples of using the
vxassist command in this way.
Subsequent sections describe how to use capabilities, templates and rules to
create ISP volumes with requirements that are beyond the scope of traditional
vxassist specification attributes.
Creating a mirrored volume
The following command creates a 1-gigabyte volume with the default number of
2 mirrors:
# vxassist -g mydg -o intent make mir2vol 1g layout=mirror \
nmir=2 init=active
The init=active attribute makes the volume immediately available for use
without attempting to synchronize its empty plexes. The
-o intent option is
used to specify that an ISP volume is required, and to create a storage pool in the
disk group if one does not already exist.
The following command creates a 1-gigabyte volume with 3 mirrors:
# vxassist -g mydg -P mypool make mir3vol 1g layout=mirror \
nmir=3 init=active
In this example, the -o intent option is implicit as the -P option is used to
specify the name of the storage pool that is to be used.
Creating a mirrored volume with mirrors on separate
enclosures
The following command creates a 2-gigabyte mirrored volume with 2 mirrors,
and with the mirrors located on separate enclosures:
# vxassist -g mydg -P mypool make strpvol 2g layout=mirror \
nmir=2 mirror=enclosure
Such a volume tolerates the failure of one enclosure and provides greater
reliability.