
meta target-role=Stopped \
operations my_stonith-operations \
op monitor start-delay=15 timeout=15 hostlist='' \
pduip='' community=''
5.5 Configuring Resource Constraints
Having all the resources configured is only one part of the job. Even if the cluster knows
all needed resources, it might still not be able to handle them correctly. For example,
it would not make sense to try to mount the file system on the slave node of drbd (in
fact, this would fail with drbd). To inform the cluster about these things, define con-
straints.
In High Availability, there are three different kinds of constraints available:
• Locational constraints that define on which nodes a resource may be run (in the
crm
shell with the command
location
).
• Collocational constraints that tell the cluster which resources may or may not run
together on a node (
colocation
).
• Ordering constraints to define the sequence of actions (
order
).
5.5.1 Locational Constraints
This type of constraint may be added multiple times for each resource. All
rsc_location
constraints are evaluated for a given resource. A simple example
that increases the probability to run a resource with the ID
fs1-loc
on the node with
the name
earth
to 100 would be the following:
crm(live)configure# location fs1-loc fs1 100: earth
5.5.2 Collocational Constraints
The
colocation
command is used to define what resources should run on the same
or on different hosts. Usually it is very common to use the following sequence:
66
High Availability Guide
Содержание 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: ......