[ClusterLabs] crm_mon froking problem

Andrew Beekhof andrew at beekhof.net
Mon Aug 3 21:04:25 EDT 2015


> On 10 Jul 2015, at 7:47 pm, Marc Ledent <marc.s.ledent at gmail.com> wrote:
> 
> Hi all,
> 
> I have a strange problem while using ClusterMon resource.
> 
> On the first node, everythin is normal. However, on the second node, if I switchover the resource there, I have 3 processes:
> ----------
> pcs resource move ClusterMon-External node-02-p
> 
> ----------
> # ps -fe | grep crm_mon
> root     12950     1  0 11:28 ?        00:00:00 /usr/sbin/crm_mon -p /tmp/ClusterMon_ClusterMon-External.pid -d -i 0 -E /opt/homesend/scripts/pcs_trap -h /tmp/ClusterMon_ClusterMon-External.html
> root     12957 12950  0 11:28 ?        00:00:00 /usr/sbin/crm_mon -p /tmp/ClusterMon_ClusterMon-External.pid -d -i 0 -E /opt/homesend/scripts/pcs_trap -h /tmp/ClusterMon_ClusterMon-External.html
> root     12964 12957  0 11:28 ?        00:00:00 /usr/sbin/crm_mon -p /tmp/ClusterMon_ClusterMon-External.pid -d -i 0 -E /opt/homesend/scripts/pcs_trap -h /tmp/ClusterMon_ClusterMon-External.html
> 
> # pstree -ncp| grep crm_mon
>            `-crm_mon(12950)---crm_mon(12957)---crm_mon(12964)
> 
> ------
> It seams that crm_mon is forkin a subprocess for unknown reason.

Its calling your /opt/homesend/scripts/pcs_trap script.
Perhaps the script isn’t terminating?


    pid = fork();
    if (pid == -1) {
        crm_perror(LOG_ERR, "notification fork() failed.");
    }
    if (pid == 0) {
        /* crm_debug("notification: I am the child. Executing the nofitication program."); */
        execl(external_agent, external_agent, NULL);
    }


> 
> However, if I start the process by hand, no strange fork happens.

You supplied the -E option this time too?

> 
> Have you any clue of this?
> 
> Kind regards,
> Marc 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Users mailing list