This write-up details the process of placing a Pacemaker cluster into maintenance mode or freezing the cluster.
Enable Maintenance Mode
1 – Run the pcs property set maintenance-mode=true
command to place the cluster into maintenance mode.
1 2 |
pcs property set maintenance-mode=true |
2 – Next run the pcs property
command to verity that it displays maintenance-mode: true
which means the cluster is in maintenance mode.
1 2 |
pcs property |
Example Output
1 2 3 4 5 6 7 8 |
Cluster Properties: cluster-infrastructure: cman dc-version: 1.1.15-5.el6-e174ec8 have-watchdog: false last-lrm-refresh: 1527095308 maintenance-mode: true no-quorum-policy: freeze |
3 – Next run the pcs status --full
command and you will see an alert at the top of the status output showing the cluster is in maintenance mode.
1 2 |
pcs status --full |
Example Output
1 2 3 4 5 6 7 8 9 10 |
Cluster name: TEST_CLUSTER Stack: cman Current DC: server01-cpn (version 1.1.15-5.el6-e174ec8) - partition with quorum Last updated: Fri Jun 1 09:25:24 2018 Last change: Fri Jun 1 09:20:51 2018 by root via cibadmin on server01-cpn *** Resource management is DISABLED *** The cluster will not attempt to start, stop or recover services 2 nodes and 44 resources configured |
Disable Maintenance Mode
1 – Run the pcs property set maintenance-mode=false
command to take the cluster out of maintenance mode.
1 2 |
pcs property set maintenance-mode=false |
2 – Next run the pcs property
command to verity that it does not display maintenance-mode: true
which means the cluster is not in maintenance mode.
1 2 |
pcs property |
Example Output
1 2 3 4 5 6 7 |
Cluster Properties: cluster-infrastructure: cman dc-version: 1.1.15-5.el6-e174ec8 have-watchdog: false last-lrm-refresh: 1527095308 no-quorum-policy: freeze |