Linking and unlinking resources

Link resources to specify a dependency between them. A resource can have an unlimited number of parents and children. When linking resources, the parent cannot be a resource whose Operations attribute is equal to None or OnOnly. Specifically, these are resources that cannot be brought online or taken offline by an agent (None), or can only be brought online by an agent (OnOnly).

Loop cycles are automatically prohibited by the VCS engine. You cannot specify a resource link between resources of different service groups.

To link resources

# hares -link parent_resource child_resource

The variable parent_resource depends on child_resource being online before going online itself. Conversely, parent_resource go offline before child_resource goes offline.

For example, a NIC resource must be available before an IP resource can go online, so for resources IP1 of type IP and NIC1 of type NIC, specify the dependency as:

# hares -link IP1 NIC1

To unlink resources