
A number of tools are available (in /usr/lib/heartbeat) to assist Heartbeat administrators with management of the cluster.
The crm_verify[1] tool is provided with Heartbeat to check the configuration database (ClusterInformationBase[2]) for consistency and other problems. The tool can be used to check a file containing the configuration or can it can connect to a running cluster. It will report two classes of problems, ERRORs and WARNINGs. ERRORs must be fixed while WARNINGs are left to the administrators discretion. An example of an ERROR would be a constraint for a resource that doesn't exist, or objects with conflicting ids. While we would typically only provide a WARNING if a cluster option is not specified.
NOTE: Added in 2.0.3
Obtaining an overview of the cluster is possible with crm_mon[3]. The tool is able to indicate active and inactive nodes, known resources and their location (if any). crm_mon has several modes and can either:
NOTE: Added in 2.0.1
NOTE: The dump and exit option was added in 2.0.3
Resource management is primarily done via crm_resource[4]. With this tool, the admin can:
NOTE: Added in 2.0.3
A common task is to migrate all resources away from a node. In Heartbeat this is called standby mode and is possible with the crm_standby[5] tool. Nodes can be put into standby-mode indefinitely (until the administrator specifically says its ok to run resources there again), or until Heartbeat is restarted on that node (usually when the node reboots).
NOTE: Added in 2.0.2
Given the range of objects that can be understood by the CRM, there is no one tool that can create them all. Instead the cibadmin[6] tool was created to allow arbitrary changes to the configuration database. The tool allows existing objects to be queried, modified and deleted as well as new ones to be created.
Some rules must be adhered to when updating the CIB:
All objects must contain a value for id
Objects with the same tag may not share the same value for id
These rules are actively enforced - the CIB will modify updates that break these rules.
NOTE: Added in 2.0.0
| [1] | http://www.linux-ha.org/v2/AdminTools/crm_verify |
| [2] | http://www.linux-ha.org/ClusterInformationBase |
| [3] | http://www.linux-ha.org/v2/AdminTools/crm_mon |
| [4] | http://www.linux-ha.org/v2/AdminTools/crm_resource |
| [5] | http://www.linux-ha.org/v2/AdminTools/crm_standby |
| [6] | http://www.linux-ha.org/v2/AdminTools/cibadmin |
This information provided courtesy of the Linux-HA project at http://linux-ha.org/