Pacemaker - Quick - Command - Reference 1
Pacemaker - Quick - Command - Reference 1
Pacemaker - Quick - Command - Reference 1
Matt Kereczman
Version 0.9, 2020-05-20
Pacemaker Command Quick Reference: 1. Overview of the Cluster
This quick reference includes the most commonly used shell commands for administrating a Pacemaker cluster.
Commands for crmsh and pcs can be used interchangeably.
# crm_mon -1r
For a continuously updated view of the cluster and cluster managed services, omit the -1 option:
# crm_mon -r
Resources can also be moved away from, or kept off of, a specific node:
Moving/banning resources places a location constraint in the cluster configuration. You must
remember to remove the constraint using the appropriate unmove / clear command after the
resource has moved.
To remove the migration constraint from the cluster after the service has been migrated:
1
Pacemaker Command Quick Reference: 3. Managing Cluster Nodes
When deleting a resource using crmsh, you must first stop the resource. crmsh will not delete a
resource while it’s running. Conversely, pcs will stop a running resource if you delete it.
To return a cluster node to online mode, therefore marking it eligible for running cluster resources:
Returning the cluster to normal operations after putting it into maintenance mode:
2
Pacemaker Command Quick Reference: 4. Cleanup Resource Failures
# crm help
-- or --
# pcs help
valid class options at the time of writing are: ocf, lsb, service, and systemd
To see documentation for a specific Pacemaker resource agent, including a full list of it’s parameters and default
operation settings:
3
Pacemaker Command Quick Reference: 7. Editing the Cluster Configuration
# crm
crm(live/node)# cib new staged-cib
crm(staged-cib/node)# configure edit
-- opens an editor --
-- write and quit to save changes --
crm(staged-cib/node)# cib commit staged-cib
crm(staged-cib/node)# quit
In both examples the name, staged-cib, was used but could be anything. In the crmsh example,
whatever name is used will be shown in the prompt to inform the user they are no longer
performing actions on the live configuration.
Appendix B: Legalese
B.1. Trademark Notice
DRBD® and LINBIT® are trademarks or registered trademarks of LINBIT in Austria, the United States, and other
countries. Other names mentioned in this document may be trademarks or registered trademarks of their respective
owners.
4
Pacemaker Command Quick Reference: B.2. License Information