O'Reilly logo

CentOS High Availability by Mitja Resman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required