When a cluster node is in standby mode, the node is no longer able to host resources. Any resources currently active on the node will be moved to another node.
About this task
The following command puts the specified node into standby mode. If you specify the --all option, this command puts all nodes into standby mode.
You can use this command when updating a resource’s packages. You can also use this command when testing a configuration, to simulate recovery without actually shutting down a node.
Procedure
-
Put the specified node into standby mode:
# pcs node standby node | --all
-
Remove the specified node from standby mode. After running this command, the specified node is then able to host resources. If you specify the
--all option, this command removes all nodes from standby mode:
# pcs node unstandby node | --all
Note that when you run the pcs node standby command, this prevents resources from running on the indicated node. When you run the pcs node unstandby command, this allows resources to run on the indicated node. This does not necessarily move the resources back to the indicated node; where the resources can run at that point depends on how you have configured your resources initially.