FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 09-14-2012, 01:27 PM
"Fabio M. Di Nitto"
 
Default cman init: increase default shutdown timeouts

From: "Fabio M. Di Nitto" <fdinitto@redhat.com>

in some conditions, specially triggered when shutting down all nodes
at the same time, corosync takes a lot longer than 10 seconds
to stabilize membership. That means that daemons will not quit fast
enough before cman init will declare a shutdown error.

Increase the default shutdown timeouts from 10 to 30 seconds.

Resolves: rhbz#854032

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/init.d/cman.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 1917abd..a88f52f 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -305,7 +305,7 @@ stop_daemon()
shift
retryforsec=$1

- [ -z "$retryforsec" ] && retryforsec=1
+ [ -z "$retryforsec" ] && retryforsec=30
retries=0

if check_sleep; then
@@ -661,7 +661,7 @@ start_qdiskd()

stop_qdiskd()
{
- stop_daemon qdiskd 5
+ stop_daemon qdiskd
}

start_groupd()
@@ -770,7 +770,7 @@ join_fence_domain()
leave_fence_domain()
{
if status fenced > /dev/null 2>&1; then
- errmsg=$( fence_tool leave -w 10 2>&1 )
+ errmsg=$( fence_tool leave -w 30 2>&1 )
return $?
fi
}
--
1.7.7.6
 

Thread Tools




All times are GMT. The time now is 08:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org