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

146 Using capabilities, templates and rules
Storage selection rules
affinity
An affinity rule expresses attraction between VxVM objects. Objects that
conform to this rule share as many attribute values as possible.
Note: The affinity rule does not take any rule operators.
The following example demonstrates the application of affinity rules:
Allocate storage from as few enclosures as possible:
desired affinity "Enclosure"
confineto
A confineto rule restricts a VxVM object, such as volume or mirror, to being
configured from a specific set of LUNs. The scope of the rule determines the
VxVM object for which the restrictions apply. When a confineto rule is used at
the top level, it usually applies to the volume.
You can use compound rules to confine a mirror, column or log to a set of LUNs.
See “Compound rules” on page 154.
Note: Expressions involving confineto can use the allof, anyof, eachof,
noneof and oneof operators to combine multiple arguments. By default, ISP
applies the
eachof operator.
See “Storage selection rule operators” on page 151.
The expression argument of a confineto rule usually consists of one or more
LUN attributes that can be specified either with or without an accompanying
value. The LUN attributes can be auto-discovered or user-defined. A value that is
not quoted is interpreted as the name of a variable whose value is to be
determined when a VxVM object is created.
The following examples demonstrate the application of confineto rules:
Use storage having the same value for the user-defined attribute, Room:
confineto "Room"
By default, the eachof operator is assumed for a confineto rule. The
following rules, which specify that storage is only to be assigned from EMC
LUNs or from LUNs that share the same value for the Room attribute, are
equivalent:
confineto "Room", "VendorName"="EMC"
confineto eachof("Room", "VendorName"="EMC")