From the crm perspective, a STONITH device is just another resource. To create a STONITH resource, proceed as follows:
Run the crm command as system administrator. The
prompt changes to crm(live).
Get a list of all STONITH types with the following command:
crm(live)# ra list stonith
apcmaster apcsmart baytech
cyclades drac3 external/drac5
external/hmchttp external/ibmrsa external/ibmrsa-telnet
external/ipmi external/kdumpcheck external/rackpdu
external/riloe external/sbd external/ssh
external/vmware external/xen0 external/xen0-ha
ibmhmc ipmilan meatware
null nw_rpc100s rcd_serial
rps10 ssh suicideChoose a STONITH type from the above list and view the list of possible options. Use the following command (press Q to close the viewer):
crm(live)# ra meta external/ipmi stonith
IPMI STONITH external device (stonith:external/ipmi)
IPMI-based host reset
Parameters (* denotes required, [] the default):
...
Create the STONITH resource with the class
stonith, the type you have chosen in
Step 3,
and the respective parameters if needed, for example:
crm(live)# configure crm(live)configure# primitive my-stonith stonith:external/ipmi \ meta target-role=Stopped \ operations my_stonith-operations \ op monitor start-delay=15 timeout=15 hostlist='' \ pduip='' community=''