User-defined precedence order for disk classes

The vxassist command applies a default priority order for the disk classes that are specified in the mirror confinement (mirrorconfine, wantmirrorconfine), mirror separation (mirror, wantmirror), and stripe separation (stripe, wantstripe) constraints. The higher priority class is honored for allocation when mirroring or striping. If a different priority order is required, you can change the default order for these disk classes.

Note:

The "site" class always has the highest precedence, and its order cannot be overridden.

Define the customized precedence order in a rule file. The higher the order number, the higher is the class precedence.

The following shows the default precedence order, for the class names supported with mirror and stripe separation or confinement constraints.

site

order=1000

vendor

order=900

arrayproduct

order=800

array

order=700

arrayport

order=600

hostport

order=400

The acceptable range for the precedence order is between 0 and 1000.

For example, the array class has a higher priority than the hostport class by default. To make the hostport class have a higher priority, assign the hostport class a higher order number. To define the order for the classes, include the following statement in a rule file:

class define array order=400
class define hostport order=700 

When the above rule is used, the following command mirrors across hostport class rather than the array class.

# vxassist -g dgname make volname volsize mirror=array,hostport