How to set stonith-enabled to true in a Pacemaker cluster

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 6 (with the High Availability or Resilient Storage Add on)
  • Red Hat Enterprise Linux 7 (with the High Availability or Resilient Storage Add on)
  • Red Hat Enterprise Linux 8 (with the High Availability or Resilient Storage Add on)
  • Red Hat Enterprise Linux 9 (with the High Availability or Resilient Storage Add on)
  • pacemaker

Issue

  • How to set stonith-enabled to true in a Pacemaker cluster
  • stonith-enabled is set to false in the cluster configuration
  • What is the impact of stonith-enabled cluster setting?

Resolution

  • Set stonith-enabled to true.

    # pcs property set stonith-enabled=true
    

Root Cause

Diagnostic Steps

  • Check the output of pcs cluster cib to check the status of the stonith bootstrap options. If no output is returned, stonith-enabled is set to true by default, event when not specifically listed in the cib:

    <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
    
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.