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

Mailing List Archive: Linux-HA: Dev

Changing failcount threshold for a single resource

 

 

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


dknight at wsi

Dec 5, 2008, 8:17 AM

Post #1 of 2 (1141 views)
Permalink
Changing failcount threshold for a single resource

All,
I am setting up a Filesystem resource to maintain an NFS mount on a
client system. I've configured a monitor function that checks every 15
minutes, timeout 1 minute. When an error occurs with the NFS mount (the
server is down for any length of time, etc), I'd like heartbeat to just
retry periodically to remount the NFS mount, rather than run monitor a
few times and error out. What is the best way to configure a resource
like this? I had considered increasing the failcount threshold (how to
do that?). Is there another way, maybe some way to tell heartbeat that
if the resource has failed, its OK, just keep trying, etc? Any
suggestions would be great.

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


dk at in-telegence

Dec 8, 2008, 12:58 AM

Post #2 of 2 (1032 views)
Permalink
Re: Changing failcount threshold for a single resource [In reply to]

Knight, Doug wrote:
> All,
> I am setting up a Filesystem resource to maintain an NFS mount on a
> client system. I've configured a monitor function that checks every 15
> minutes, timeout 1 minute. When an error occurs with the NFS mount (the
> server is down for any length of time, etc), I'd like heartbeat to just
> retry periodically to remount the NFS mount, rather than run monitor a
> few times and error out. What is the best way to configure a resource
> like this? I had considered increasing the failcount threshold (how to
> do that?). Is there another way, maybe some way to tell heartbeat that
> if the resource has failed, its OK, just keep trying, etc? Any
> suggestions would be great.

All this is for version >= 1.0

The default value of "migration-threshold" is 0. Which means - don't
care about the failure count of a resource, just keep re-starting it.

Then, setup a rsc_location constraint for your NFS on the node you want it.

Regards
Dominik
_______________________________________________________
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.