Hi Raoul, Thank you for comment.
> > diff -r cb5f9b84cc5f heartbeat/mysql > > --- a/heartbeat/mysql Wed Aug 31 01:38:15 2011 +0900 > > +++ b/heartbeat/mysql Wed Aug 31 01:38:55 2011 +0900 > > @@ -897,9 +897,10 @@ > > $CRM_MASTER -D > > fi > > > > - if [ ! -f $OCF_RESKEY_pid ]; then > > - ocf_log info "MySQL is not running" > > - return $OCF_SUCCESS > > + mysql_status info > > + rc=$? > > + if [ $rc = $OCF_NOT_RUNNING ]; then > > + return $OCF_SUCCESS > > fi > > > > pid=`cat $OCF_RESKEY_pid 2> /dev/null ` > > i'm sorry but i do not understand the problem you're addressing. > can you please describe with different words? Sorry.... For example, mysql fails in stop processing and causes an error when the next trouble happens. Step1 ) For example, for switch over, stop handling of Mysql begins. Step2 ) However, Mysql fell by process trouble just after that. The pid file is left. Step3 ) When pid file is left by the current stop processing, an error happens. * The stop processing is finished normally by checking pid file and the existence of the process by this patch definitely. * And the switch over excess succeeds. Best Regards, Hideo Yamauchi. --- On Tue, 2011/9/20, Raoul Bhatia [IPAX] <[email protected]> wrote: > hello hideo-san! > > On 08/30/2011 10:20 AM, [email protected] wrote: > > Hi, > > > > When a process of mysql falls just after the check of the pid file of > > monitor, the mysql resource agent causes an error by a stop. > > > > This is caused by the fact that a resource agent checks pid of the mysql > > process that fell at the time of a stop. > > The resource agent should check the effectiveness of the pid file before a > > check again. > > ... > > diff -r cb5f9b84cc5f heartbeat/mysql > > --- a/heartbeat/mysql Wed Aug 31 01:38:15 2011 +0900 > > +++ b/heartbeat/mysql Wed Aug 31 01:38:55 2011 +0900 > > @@ -897,9 +897,10 @@ > > $CRM_MASTER -D > > fi > > > > - if [ ! -f $OCF_RESKEY_pid ]; then > > - ocf_log info "MySQL is not running" > > - return $OCF_SUCCESS > > + mysql_status info > > + rc=$? > > + if [ $rc = $OCF_NOT_RUNNING ]; then > > + return $OCF_SUCCESS > > fi > > > > pid=`cat $OCF_RESKEY_pid 2> /dev/null ` > > i'm sorry but i do not understand the problem you're addressing. > can you please describe with different words? > > thanks, > raoul > _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
