User-defined disk classes

You can define customized disk classes to use in storage specifications for the vxassist command. Customized disk classes allow for user-defined device classification and grouping. You can use these disk classes to control allocations. A customized disk class is a user-defined property that is associated with a set of disks. The property is attached as a disk class to the disks that satisfy a particular constraint.

You can use the custom disk classes like other storage-specification disk classes, to specify vxassist allocation constraints. Define the custom disk classes in a rule file.

Example

With the following definition in the rule file, the user-defined property "poolname" is associated to the referenced disks. All devices that have the array vendor property defined as HITACHI or IBM, are marked as poolname "finance". All devices that have the array vendor property defined as DGC or EMC, are marked as poolname "admin".

disk properties vendor:HITACHI {
     poolname:finance
}                
disk properties vendor:IBM {
     poolname:finance
} 
disk properties vendor:DGC {
     poolname:admin
}              
disk properties vendor:EMC {
     poolname:admin
}

You can now use the user-defined disk class "poolname"for allocation. For example, the following constraint specification allocates disks from the poolname "admin" for the volume creation.

# vxassist -g dgname make volname volsize poolname:admin