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

66 Creating application volumes
Creating volumes
Creating a striped volume
The following command creates a 2-gigabyte striped volume with 10 columns:
# vxassist -g mydg -P mypool make strpvol 2g layout=stripe \
ncols=10
Creating a mirrored-stripe volume with mirrors on separate
controllers
The following command creates a 2-gigabyte mirrored-stripe volume with 8
columns, and with the mirrors located on separate controllers:
# vxassist -g mydg -P mypool make strpvol 2g \
layout=mirror-stripe ncols=8 mirror=controller
Creating a RAID-5 volume with a RAID-5 log
The following command creates a 2-gigabyte RAID-5 volume with 8 data
columns and a RAID-5 log that has 2 redundant copies:
# vxassist -g mydg -P mypool make r5vol 2g layout=raid5 \
ncols=8 nraid5logs=2
Creating volumes by specifying capabilities
A capability is a high-level description of a volume, for example,
DataMirroring, Striping or PrefabricatedRaid5. ISP automatically
selects a suitable template from those that provide the desired capability. As
such, this is the most abstract way of creating volumes using
vxassist as it
requires the least specification by you. You can customize a capability by
specifying values for any variable parameters that it defines.
For a list of predefined capabilities that are supported, see “Capability” on
page 185. The following sections provide some examples of creating volumes
with these capabilities.
Creating a mirrored volume
The following command creates a 1-gigabyte volume with the default number of
2 mirrors:
# vxassist -g mydg -P mypool make mir2vol 1g \
capability=’DataMirroring’ init=active
The init=active attribute makes the volume immediately available for use
without attempting to synchronize its empty plexes.
The following command creates a 1-gigabyte volume with 3 mirrors:
# vxassist -g mydg -P mypool make mir3vol 1g \
capability=’DataMirroring(nmirs=3)’ init=active