Some basic snippets for pacemaker and CRM.
To check the status of the cluster and resources:
crm status
To check the status of resources:
crm resource status
To get a simple status:
crm status simple
To put resources in maintenance mode (eg. to allow services to be upgraded/restarted without impacting cluster):
crm configure property maintenance-mode=true
To turn off maintenance mode again:
crm configure property maintenance-mode=false
To put a node in standby status (moving any active resources if relevant):
crm node standby NODENAME
To put the node online again:
crm node online NODENAME
crm_resource --cleanup