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

68 Creating application volumes
Creating volumes
Creating volumes by specifying capabilities and rules
You can specify storage selection and layout rules in addition to capabilities
when creating volumes. This allows you to select explicitly which storage can
and cannot be used for certain volumes. For example, you might do this to
ensure that volumes are created on storage with certain performance or
reliability that is implemented in an array’s hardware.
Refer to “Rules” on page 144 for details of the different types of rule and their
usage.
Creating a RAID-5 volume on prefabricated storage
The following command creates a 10-gigabyte volume on a prefabricated RAID-
5 disk that is exported from an array made by a specified vendor:
# vxassist -g mydg -P mypool make perfr5vol 10g \
capability='PrefabricatedRaid5' \
rules='confineto "VendorName"="ACME"'
Creating a mirrored volume on enclosures in separate
locations
The following command creates a mirrored volume that tolerates the failure of a
single enclosure, where each enclosure is in a different room. This avoids single
point of failure and ensures greater reliability.
# vxassist -g mydg -P mypool make mirvol 10g \
capability=’DataMirroring’ \
rules=’separateby "Room","Enclosure"’
In this example, it is assumed that the vxdisk settag command has been used to
assign tags for the user-defined attribute Room to each disk, for example:
# vxdisk -g mydg settag Room=room1 mydg01 mydg02 mydg03 mydg04
# vxdisk -g mydg settag Room=room2 mydg05 mydg06 mydg07 mydg08
Creating a striped volume excluding certain disks
The following command creates a striped volume on storage other than that in
Room1 and certain disks in enclosure, Enc1:
# vxassist -g mydg -P mypool make strvol 1g \
capability=’Striping(ncols=4)’ \
rules=’exclude allof("Room"="Room1","DeviceName"="Enc1_1",\
"DeviceName"="Enc1_2")’