Fence test

It is very important to test your fencing configuration very thoroughly to make sure that, when there is a problem in the cluster, the fencing mechanism will work as expected and resolve the issue.

The stonith_admin command provides a lot of very useful information and fence management features, as follows:

  • It lists configured fencing devices for a specific cluster node
  • It lists all configured fencing devices in the cluster
  • It queries the status of the fencing device

The stonith_admin command also enables you to manually trigger fencing of a cluster node.

The syntax used to fence a cluster node is as follows:

stonith_admin --fence="clusternode_name"

The preceding command will trigger a fencing action as configured on the cluster node provided ...

Get CentOS High Availability now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.