
8.3.1 Example STONITH Resource
Configurations
In the following, find some example configurations written in the syntax of the
crm
command line tool. To apply them, put the sample in a text file (for example,
sample
.txt
) and run:
crm < sample.txt
For more information about configuring resources with the
crm
command line tool,
refer to Chapter 5, Configuring Cluster Resources From Command Line (page 59).
WARNING: Testing Configurations
Some of the examples below are for demonstration and testing purposes only.
Do not use any of the
Testing Configuration
examples in real-life cluster
scenarios.
Example 8.1
Testing Configuration
configure
primitive st-null stonith:null \
params hostlist="node1 node2"
clone fencing st-null
commit
Example 8.2
Testing Configuration
An alternative configuration:
configure
primitive st-node1 stonith:null \
params hostlist="node1"
primitive st-node2 stonith:null \
params hostlist="node2"
location l-st-node1 st-node1 -inf: node1
location l-st-node2 st-node2 -inf: node2
commit
This configuration example is perfectly alright as far as the cluster software is concerned.
The only difference to a real world configuration is that no fencing operation takes
place.
Fencing and STONITH
85
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......