Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
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.
See inherits.
The following example demonstrates the application of the requires keyword by
defining 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 also required to provide the Reliable capability, the inherits
keyword should be used as shown in the following example:
volume_template MyReliableSnapshot {
inherits Reliable
provides Snapshot
rules {
...
}
};
This template provides the Snapshot capability through its own rules, and also
provides the Reliable capability by using rules from other templates.
Using capabilities, templates and rules
Volume templates
152