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