Section Number and Name:
5.6. RESOURCE OPERATIONS
Describe the issue:
Currently we state the following about changing the monitoring options:
To change the values of a monitoring option, you remove the existing operation, then add the new operation. For example, you can create a VirtualIP with the following command.
# pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.0.99 cidr_netmask=24 nic=eth2
By default, this command creates these operations.
Operations: start interval=0s timeout=20s (VirtualIP-start-timeout-20s)
stop interval=0s timeout=20s (VirtualIP-stop-timeout-20s)
monitor interval=10s timeout=20s (VirtualIP-monitor-interval-10s)
The change the stop timeout operation, execute the following commands.
# pcs resource op remove VirtualIP stop interval=0s timeout=20s
# pcs resource op add VirtualIP stop interval=0s timeout=40s
Suggestions for improvement:
Instead of removing and adding the the stop options in two steps, we can
do it in a single operation:
pcs resource update VirtualIP op stop interval=0s timeout=40s
This is a bit more simple and less error prone.
I have updated this example in the current draft of the document, which can be found here: