[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Quorum disk votes not used when starting node?



On Mon, 2007-10-22 at 19:43 +0200, Jos Vos wrote:
> On Mon, Oct 15, 2007 at 11:37:32AM -0400, Lon Hohberger wrote:
> 
> > On Wed, 2007-10-10 at 20:56 +0200, Jos Vos wrote:
> 
> > > Now, this all works fine, cman_tool shows what I expected and when I
> > > remove the file /tmp/qdisk on a node, that node reboots instantaneously.
> > > 
> > > However, after the reboot, while the file tested in the heuristic does
> > > still not exist, the node is joining the cluster again and starts some
> > > cluster services!
> > 
> > Add stop_cman="1" to <quorumd>
> 
> Any other suggestions?  As I already replied, this didn't help (I'd
> already tried that before asking the question).  Note that this is
> on RHEL4 (with all updates), if that matters.
> 

I see it - it looks like stop_cman only applies if qdiskd can't reach
the disk, not if the heuristics are bad.

This should make it kill CMAN if heuristics are bad too if stop_cman is
set.

-- Lon



Index: main.c
===================================================================
RCS file: /cvs/cluster/cluster/cman/qdisk/main.c,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 main.c
--- main.c	20 Mar 2007 19:36:14 -0000	1.1.2.8
+++ main.c	23 Oct 2007 20:59:35 -0000
@@ -505,6 +505,8 @@
 
 	get_my_score(&score, &maxscore);
 	clulog(LOG_INFO, "Initial score %d/%d\n", score, maxscore);
+	if ((ctx->qc_flags & RF_STOP_CMAN) && (score < score_req))
+		return -1;
 	clulog(LOG_INFO, "Initialization complete\n");
 
 	return 0;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]