Creating STONITH Resources

To configure fencing, you need to configure one or more STONITH resources.

Procedure 4.3. Adding a STONITH Resource

  1. Start the Linux HA Management Client and log in to the cluster as described in Section 4.1, “Linux HA Management Client”.

  2. In the left pane, select Resources and click Add+Primitive.

  3. In the next dialog, set the following parameters for the resource:

    1. Enter a unique ID for the resource.

    2. From the Class list, select the resource agent class stonith.

    3. From the Type list, select the STONITH plug-in for controlling your STONITH device. A short description for this plug-in is displayed below.

    4. Below Options, set the Initial state of resource.

    5. Activate Add monitor operation if you want the cluster to monitor the fencing device. For more information, refer to Section 8.4, “Monitoring Fencing Devices”.

  4. Click Forward. The next window shows a summary of the parameters that you have already defined for that resource. All required Instance Attributes for the selected STONITH plug-in are listed. You need to edit them in order to set them to appropriate values. You may also need to add more attributes or monitor operations, depending on your deployment and settings. For details how to do so, refer to Adding or Modifying Meta and Instance Attributes and Section 4.7, “Configuring Resource Monitoring”.

  5. If all parameters are set according to your wishes, click Apply to finish the configuration of that resource. The configuration dialog is closed and the main window shows the newly added resource.

To complete your fencing configuration add constraints, or use clones or both. For more details, refer to Chapter 8, Fencing and STONITH.