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

Re: [Linux-cluster] zero vote node with cman



Olivier Crete wrote:
> Hi,
> 
> We're using cman from the STABLE branch and we're pretty satisfied.. But
> there is one thing that I dont seem to be able to get working. In a
> client-server application, I would like the client nodes to be able to
> take actions when the system becomes inquorate or a server dies, but not
> could towards the quorum.
> 
> I tried setting the votes to 0, but it seems that it wont let me do it..
> Is there another solution?
> 
> 

It seems to be a bug in cman_tool that's overriding the votes rather
over-enthusiastically.

This patch should fix:

Index: main.c
===================================================================
RCS file: /cvs/cluster/cluster/cman/cman_tool/main.c,v
retrieving revision 1.12.2.7
diff -u -p -r1.12.2.7 main.c
--- main.c      21 Mar 2005 16:17:06 -0000      1.12.2.7
+++ main.c      19 Aug 2005 07:18:47 -0000
@@ -552,7 +552,7 @@ static void check_arguments(commandline_
        if (!comline->clustername[0])
                die("cluster name not set");

-       if (!comline->votes)
+       if (!comline->votes_opt && comline->no_ccs)
                comline->votes = DEFAULT_VOTES;

        if (!comline->port)


-- 

patrick


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