Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

volume rule tier1 { rule=base mirror=enclosure tier=tier1 }
volume rule tier2 { rule=base tier=tier2 }
The following rule file contains a more complex definition which runs across
several lines.
volume rule appXdb_storage {
description="Create storage for the database of Application X"
rule=base
siteconsistent=yes
mirror=enclosure
}
By default, a rule file is loaded from /etc/default/vxsf_rules. You can override
this location in /etc/default/vxassist. You can also specify additional rule files
on the command line.
Using rules to create a volume
When you use the vxassist command to create a volume, you can include the
rule name on the command line. For example, the content of the vxsf_rules file
is as follows:
volume rule basic { logtype=dco }
volume rule tier1 {
rule=basic
layout=mirror
tier=tier1
}
In the following example, when you create the volume vol1 in disk group dg3,
you can specify the tier1 rule on the command line. In addition to the attributes
you enter on the command line, vol1 is given the attributes that you defined in
tier1.
vxassist -g dg3 make vol1 200m rule=tier1
The following vxprint command displays the attributes of disk group dg3. The
output includes the new volume, vol1.
vxprint -g dg3
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg dg3 dg3 - - - - - -
dm ibm_ds8x000_0266 ibm_ds8x000_0266 - 2027264 - - - -
331Creating volumes
Using rules and persistent attributes to make volume allocation more efficient