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

134 Creating and modifying user templates
Using a user template to create an application volume
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"
}
};
user_template DB_Index {
description "Makes high performance volume for database
index"
capability Striping {
NCOLS = 8
}
rules {
confineto "VendorName"="EMC"
}
};
You can then use the -d option with the vxusertemplate create command to
add the user template in the configuration file to the global usertemplates
file, as shown here:
# vxusertemplate -d
config_file
create
Using a user template to create an application
volume
You can create an application volume using a user template by specifying the
name of the user template in place of the name of a capability to the
vxassist
make command. For example, to create a 10GB application volume in the storage
pool, mypool, using the user template, RP_DB_Table, you would use the
following command:
# vxassist -g mydg -P mypool make myDBvol 10g \
user_template=’RP_DB_Table’
Note: Unlike volume templates, you cannot specify parameter values for user
templates on the command line.