[Pacemaker] crm resource restart fails to restart the service
Pavlos Parissis
pavlos.parissis at gmail.com
Wed Nov 17 12:35:30 UTC 2010
On 17 November 2010 13:26, Dan Frincu <dfrincu at streamwide.ro> wrote:
> Hi,
>
> root at cluster1:/# pgrep mysql
> 961
> 1127
> root at cluster1:/# crm resource restart mysqld
> root at cluster1:/# pgrep -fl mysql
> 961
> 1127
>
> The restart command doesn't actually restart the process, I have tried this
> with another custom built OCF compliant RA and have the same issue.
>
> # rpm -qa '(pacemaker|corosync|resource-agents)'
> pacemaker-1.0.9.1-1.el5
> resource-agents-1.0.3-2.el5
> corosync-1.2.7-1.1.el5
>
> # crm configure show mysqld
> primitive mysqld ocf:heartbeat:mysql \
> params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf"
> enable_creation="0" datadir="/mysql/database" user="root"
> test_user="monitor" test_passwd="monitor" test_table="cluster.monitor" \
> op monitor interval="10s" timeout="5s" \
> op start interval="0s" \
> op stop interval="0s" \
> meta target-role="Started"
>
> Ideas?
>
> Regards,
> Dan
>
> --
> Dan FRINCU
> Systems Engineer
> CCNA, RHCE
> Streamwide Romania
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
I have experienced the same issue and created a bug report
http://developerbugs.linux-foundation.org/show_bug.cgi?id=2516.
In my case I have a group [1] and if I do crm resource restart pbx_01
the last resource(mailAlert-01) of the group is restarted.
Cheers,
Pavlos
[1] group pbx_service_01 ip_01 fs_01 pbx_01 sshd_01 mailAlert-01
More information about the Pacemaker
mailing list