On 2011-10-13 14:41, [email protected] wrote: > Hi, > > In the mysql RA script, we can see: > > # Spin waiting for the server to come up. > > # Let the CRM/LRM time us out if required > > start_wait=1 > while [ $start_wait = 1 ]; do > mysql_status > rc=$? > if [ $rc = $OCF_SUCCESS ]; then > start_wait=0 > > elif [ $rc != $OCF_NOT_RUNNING ]; then > ocf_log info "MySQL start failed: $rc" > return $rc > fi > sleep 2 > done > > but when the timeout on start configured in cib occurs, > what does Pacemaker to make this infinite loop ending ?
The LRM kills the RA if it doesn't return before its timeout expires. Timeouts are treated like OCF_ERR_GENERIC, and if start-failure-is-fatal=true (default), then this means an immediate resource migration to another node. Florian -- Need help with High Availability? http://www.hastexo.com/now _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
