
crm(live)# configure
crm(live)configure# primitive nfs_resource lsb:nfsserver
crm(live)configure# primitive ip_resource ocf:heartbeat:IPaddr \
params ip=10.10.0.1
crm(live)configure# group nfs_group nfs_resource ip_resource
crm(live)configure# commit
crm(live)configure# end
crm(live)# quit
5.4 Creating a STONITH Resource
From the
crm
perspective, a STONITH device is just another resource. To create a
STONITH resource, proceed as follows:
1
Run the
crm
command as system administrator. The prompt changes to
crm(live)
.
2
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
suicide
3
Choose 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):
...
4
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 \
Configuring Cluster Resources From Command Line
65
Summary of Contents for LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Page 10: ......
Page 11: ...Part I Installation and Setup...
Page 12: ......
Page 28: ......
Page 38: ......
Page 39: ...Part II Configuration and Administration...
Page 40: ......
Page 68: ......
Page 108: ......
Page 114: ......
Page 115: ...Part III Storage and Data Replication...
Page 116: ......
Page 126: ......
Page 140: ......
Page 141: ...Part IV Troubleshooting and Reference...
Page 142: ......
Page 148: ......
Page 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Page 202: ......
Page 210: ......
Page 285: ...Part V Appendix...
Page 286: ......