Managing Serviceguard Nineteenth Edition, Reprinted June 2011
dependency_condition
The condition that must be met for this dependency to be satisfied.
The syntax is: <package_name> = <package_status>. <package_name> is the name of the
package depended on. Valid values for <package_status> are UP, or DOWN.
• UP means that this package requires the package identified by <package_name> to be up
(that is, the status reported by cmviewcl is UP).
If you specify UP, the type and characteristics of the current package (the one you are
configuring) impose the following restrictions on the type of package it can depend on:
◦ If the current package is a multi-node package, <package_name> must identify a
multi-node or system multi-node package.
◦ If the current package is a failover package and its failover_policy (page 226) is
min_package_node, <package_name> must identify a multi-node or system multi-node
package.
◦ If the current package is a failover package and its failover_policy (page 226) is
configured_node , <package_name> must identify a multi-node or system multi-node
package, or a failover package whose failover_policy is configured_node.
• DOWN means that this package requires the package identified by <package_name> to be
down (that is, the status reported by cmviewcl is UP). This is known as an exclusionary
dependency (or exclusion dependency).
If you specify DOWN:
◦ The exclusionary dependency must be mutual: only one of the packages can be running
at any given time. For example, if pkgA depends on pkgB to be down, pkgB must also
depend on pkgA to be down.
◦ You must apply both packages to the cluster configuration at the same time.
◦ Both packages must be failover packages whose failover_policy is
configured_node.
◦ At least one of the packages must specify a priority (page 227).
For more information, see “About Package Dependencies” (page 128).
dependency_location
Specifies where the dependency_condition must be met.
• If dependency_condition is UP, legal values fordependency_location are same_node,
any_node, and different_node.
◦ same_node means that the package depended on must be running on the same node.
◦ different_node means that the package depended on must be running on a different
node in this cluster.
◦ any_node means that the package depended on must be running on some node in this
cluster.
• If dependency_condition is DOWN, legal values fordependency_location are
same_node andall_nodes.
◦ same_node means that the package depended on must not be running on the same
node.
◦ all_nodes means that the package depended on must not be running on any node in
this cluster.
For more information, see “About Package Dependencies” (page 128).
228 Configuring Packages and Their Services