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

152 Using capabilities, templates and rules
Storage layout rules
The following examples demonstrate the application of the apply rule:
Apply the rules but not the capabilities from the template
ArrayProductId to a compound rule within the template
PrefabricatedDataMirroring:
volume_template PrefabricatedDataMirroring {
provides PrefabricatedDataMirroring
rules {
apply ArrayProductId
confineto eachof ( "Redundancy" =nmirs , "Parity" ="0" )
}
};
volume_template ArrayProductId {
provides ArrayProductId
rules {
confineto "ProductId"
}
};
Typically, you would use the apply keyword when you want to get the rules
of a template without its associated capabilities. In the example, the
template MyReliableSnapshot is defined so that the application of
Snapshot to one mirror results in the whole volume getting the associated
Snapshot capability, whereas the application of EMCStorage to one mirror
does not result in the whole volume getting the EMCStorage capability:
volume_template MyReliableSnapshot {
provides Snapshot, Reliable
rules {
separateby "Enclosure"
mirror 1 {
apply Snapshot, EMCStorage
confineto "Enclosure"
}
mirror 1 {
confineto "Enclosure"
}
}
};