VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Creating Volumes
50 VERITAS Storage Foundation ISP Administrators Guide
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:
# vxvoladm -g mydg 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.
# vxvoladm -g mydg make mirvol 10g capability=’DataMirroring’ \
rules=’separateby "Room","Enclosure"’
Note In this example, it is assumed that values for the user-defined attribute Room have been
assigned to each enclosure.
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:
# vxvoladm -g mydg make strvol 1g capability=’Striping(ncols=4)’ \
rules=’exclude allof("Room"="Room1","DeviceName"="Enc1_1",\
"DeviceName"="Enc1_2")’
Creating Volumes by Specifying Templates
Volumes can be created by specifying templates instead of capabilities. The following example
demonstrates how to create a mirrored volume using a template:
# vxvoladm -g mydg make mirvol 1g volume_template=DataMirroring
Note If you specify templates when creating a volume, you must ensure that these templates are
self-sufficient, and that they do not depend on templates that are not specified on the
command line. This applies to all cases where templates are named by themselves, or in
combination with a mixture of capabilities and rules.