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

143Using capabilities, templates and rules
Volume templates
provides
A template provides one or more capabilities as defined by its rules, or by
requiring capabilities.
See “requires” on page 143.
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. Whenever a template provides
a capability by specifying that it requires it, it should be explicitly listed in a
provides or inherits clause.
See “provides” on page 143.
See “inherits” on page 142.
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 {
requires Reliable
provides Snapshot
rules {
...
}
};
This template picks up any templates that provide the Reliable
capability, and merges their rules with its own rules. If the template were