VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Chapter 8, Using Capabilities, Templates and Rules
Storage Selection Rules
123
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. Refer to
“Compound Rules” on page 131 for details on confining a mirror, column or log to a set of LUNs.
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 128 for more information.
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")
◆ Use only EMC LUNs that have their Room attribute set to the value Room1:
confineto eachof("VendorName"="EMC", "Room"="Room1")
◆ Use only storage with VendorName set to the value of the variable VENDOR_NAME, and with
Room set to the value of the variable ROOM_NAME:
confineto eachof("VendorName"=VENDOR_NAME, "Room"=ROOM_NAME)
Note VENDOR_NAME and ROOM_NAME are variables that are defined in a capability. Their
values are resolved when you enter values for the capability during the creation of a
VxVM object.
◆ Create a volume using one or more LUNs from either or both of the enclosures EMC1 and
EMC2, and not from anywhere else:
confineto anyof("Enclosure"="EMC1", "Enclosure"="EMC2")