Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
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 159.
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:
■ The following example uses 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")
■ The following example uses only EMC LUNs that have their Room attribute set
to the value Room1:
confineto eachof("VendorName"="EMC", "Room"="Room1")
■ The following example uses 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)
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.
■ The following example creates 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")
155Using capabilities, templates and rules
Storage selection rules