VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Chapter 7, Creating and Modifying User Templates
Creating User Templates
109
capability Striping {
NCOLS = 8
}
rules {
confineto "VendorName"="EMC"
}
};
The user template, DB_Table, can be used to create a mirrored volume with two plexes, but is
restricted to using only EMC disks. Similarly, the user template, DB_Index, can be used to create
a striped volume with eight columns, and is also restricted to using only EMC disks.
Creating User Templates
You can either create a user template by defining it directly from the command line, or by defining
it in a configuration file. The first method is only suitable for very simple user templates. It is
usually preferable to define your templates in a configuration file.
To create a user template directly from the command line, use the vxusertemplate create
command as shown here:
# vxusertemplate create usertemplate_name \
[description="string"] \
[rules=rule1 [rule2 ]...] \
[capability=capability1[(var1=value1[,var2=value2]...)]\
[,capability2[(var1=value1[,var2=value2]...)]]...]
For example, the following command creates a user template named RP_DB_Table that has both
Reliable and HighPerformance capabilities:
# vxusertemplate create RP_DB_Table \
description="Makes reliable high performance volume \
for database table"rules=confineto "VendorName"="EMC" \
capability=’DataMirroring(NMIRS=2),Striping(NCOLS=8)’
This command adds the user template to the global usertemplates file that is maintained by
ISP.
Alternatively, you can create a configuration file that contains an equivalent user template, as
shown in this sample listing:
user_template DB_Table {
description "Makes mirrored volume for database table"
capability DataMirroring {
NMIRS = 2
}
rules {
confineto "VendorName"="EMC"