VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Chapter 8, Using Capabilities, Templates and Rules
Volume Templates
119
}
};
can be rewritten as:
volume_template ReliableSnapshot {
inherits Reliable
provides Snapshot
rules {
...
}
};
provides
A template provides one or more capabilities as defined by its rules, or by requiring capabilities
(see “requires”). Any variables that are defined for the capability can be used by the template’s
rules.
The following example demonstrates the application of the provides keyword:
Define a template, ReliableT, that provides the Reliable capability, and which uses the
NMIRS variable of the capability to set the number of mirrors:
volume_template ReliableT {
provides Reliable
rules {
mirror NMIRS {
...
}
}
};
requires
If a template requires one or more capabilities, it can take the appropriate rules from any templates
that provide those capabilities.
The requires keyword does not imply provides (see “provides”). Whenever, a template
provides a capability by specifying that it requires it, it should be explicitly listed in a provides
or inherits clause (see “inherits” on page 119).
The following example demonstrates the application of the requires keyword:
Define a template, MySnapshot, that provides the SnapShot capability, and requires, but
does not provide, the Reliable capability:
volume_template MySnapshot {