VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Chapter 8, Using Capabilities, Templates and Rules
Storage Layout Rules
129
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"
}
}
};
parity
The parity rule defines whether redundancy should be parity based (that is, RAID-5) as
implemented in either hardware or software. The value can be true or false.
The following example demonstrates the application of the parity rule:
◆ Define a template for providing reliability using software RAID-5: