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 - - - - dm ibm_ds8x000_0267 ibm_ds8x000_0267 - 2027264 - - - - dm ibm_ds8x000_0268 ibm_ds8x000_0268 - 2027264 - - - - v vol1 fsgen ENABLED 409600 - ACTIVE - - pl vol1-01 vol1 ENABLED 409600 - ACTIVE - - sd ibm_ds8x000_0266-01 vol1-01 ENABLED 409600 0 - - - pl vol1-02 vol1 ENABLED 409600 - ACTIVE - - sd ibm_ds8x000_0267-01 vol1-02 ENABLED 409600 0 - - - dc vol1_dco vol1 - - - - - - v vol1_dcl gen ENABLED 144 - ACTIVE - - pl vol1_dcl-01 vol1_dcl ENABLED 144 - ACTIVE - - sd ibm_ds8x000_0266-02 vol1_dcl-01 ENABLED 144 0 - - - pl vol1_dcl-02 vol1_dcl ENABLED 144 - ACTIVE - - sd ibm_ds8x000_0267-02 vol1_dcl-02 ENABLED 144 0 - - -
The following vxassist command confirms that vol1 is in the tier tier1. The application of rule tier1 was successful.
vxassist -g dg3 listtag TY NAME DISKGROUP TAG ========================================================= v vol1 dg3 vxfs.placement_class.tier1