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

147Using capabilities, templates and rules
Storage selection rules
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")
Note: When the anyof operator is used, ISP takes storage from the
operands in the order that they are specified. In this example, ISP first
attempts to select LUNs from the enclosure EMC1, and if this is not possible,
it selects LUNs from the enclosure EMC2. If this also is not possible, ISP
selects LUNs from both EMC1 and EMC2.
Use LUNs that originate either only from EMC or only from Hitachi:
confineto oneof("VendorName"="EMC", "VendorName"="Hitachi")
Note: When the oneof operator is used, ISP takes storage from the
operands in the order that they are specified. In this example, ISP first
attempts to select EMC LUNs, and if this is not possible, it selects Hitachi
LUNs.
Confine storage to be allocated from either Room1 or from Room2. If storage
is selected from Room1, Hitachi LUNs cannot be used. Similarly, if storage is
selected from Room2, EMC LUNs cannot be used.
confineto
oneof(eachof("Room"="Room1",noneof("VendorName"="Hitachi")), \
eachof("Room"="Room2", noneof("VendorName"="EMC")))
Note: In this example, ISP first attempts to select LUNs from Room1, and if
this is not possible, it selects LUNs from Room2.
Do not use LUNs from Room1 or LUNs from vendor EMC:
confineto noneof("VendorName"="EMC", "Room"="Room1")
Note: The noneof operator implies the logical union of its operands.