Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

patch: pingd OCF RA

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


dk at in-telegence

Dec 1, 2008, 5:47 AM

Post #1 of 2 (896 views)
Permalink
patch: pingd OCF RA

Hi

I'd like to propose a patch for the pingd OCF RA.

Consider the following situation:

Cluster is set to maintenance-mode=true.
pingd is running as a clone.
The cluster (based on heartbeat) is shutdown and restarted.

As the RA checks the content of the pidfile, which was deleted by the
heartbeat start, the cluster thinks pingd is not running. When the
cluster is re-enabled, it starts another pingd.

I figured there was some point to remove $HA_RSCTMP during heartbeat
start, so the patch changes the default path for the pid file.

Regards
Dominik
Attachments: pingd-ocf.patch (0.66 KB)


lmb at suse

Dec 2, 2008, 6:32 AM

Post #2 of 2 (817 views)
Permalink
Re: patch: pingd OCF RA [In reply to]

On 2008-12-01T14:47:44, Dominik Klein <dk [at] in-telegence> wrote:

> As the RA checks the content of the pidfile, which was deleted by the
> heartbeat start, the cluster thinks pingd is not running. When the cluster
> is re-enabled, it starts another pingd.
>
> I figured there was some point to remove $HA_RSCTMP during heartbeat start,
> so the patch changes the default path for the pid file.

No, this point doesn't hold.

The heartbeat script shouldn't delete it as such; there is a point to
it, namely cleaning out stale data on system boot, but we may in fact be
better off leaving this to the system startup scripts (and not remove
those files there); we have to deal with them becoming stale at runtime
(due to potential crashes etc) anyway.


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.