Configuring automatic shutdown for a split-brain condition using the CLI

Prev Next

Use the commands in this section to automatically shut down the cluster when there is a split-brain condition. This feature is disabled by default. (See Split-brain handling for more information about this configuration option.)

Note

This is a global configuration. The configuration actions are performed from only one node, but are applied to the cluster.

Enabling automatic shutdown

Enable automatic shutdown:
  1. Enable automatic shutdown:

    node-hostname (config) # ha engine split-brain shutdown auto
  2. Verify your change:

    node-hostname (config) # show configuration
  3. Save your change:

    node-hostname (config) # write memory

Disabling automatic shutdown

Disable automatic shutdown:
  1. Disable automatic shutdown:

    node-hostname (config) # no ha engine split-brain shutdown auto
  2. Verify your change:

    node-hostname (config) # show ha configuration
  3. Save your change:

    node-hostname (config) # write memory

Example

The following example enables automatic shutdown for the cluster from the secondary node.

node2 (config) # ha engine stop
node1 (config) # ha engine stop
node2 (config) # ha engine split-brain shutdown auto
node2 (config) # show ha configuration
CM HA Settings:
   ...
   Split-brain auto-shutdown:  no
   ...
...
node2 (config) # write memory
node2 (config) # ha engine restart
node1 (config) # ha engine restart