[Linux-cluster] Basic two node cman configuration

Sridharan Ramaswamy (srramasw) srramasw at cisco.com
Mon Jan 22 21:19:34 UTC 2007


I'm trying to understand the basics of ccs/cman layer for a two-node
configuration. I understand, from the docs, this is a special condition
that need cman started with  two_node="1" and expected_votes="1". But I
still have problem starting cman. It complains the votes = -1 and fails
to start.
 
Jan 22 12:35:50 cfs1 cman: cman_tool: the two-node option requires
exactly two nodes with one vote each and expected votes of 1 (votes=-1)
failed

But if remove two_node setting from <cman two_node="1"
expected_votes="1"> to <cman> it actually starts fine!! Not sure where
it is getting votes = -1. 
 
Is this some silly mistake on my part or a known issue? 
 
TIA,
Sridharan
 
 
$ more /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="testgfs" config_version="1">
 
<cman two_node="1" expected_votes="1">
</cman>
 
<clusternodes>
<clusternode name="cfs1">
        <fence>
                <method name="single">
                        <device name="human" nodename="cfs1"/>
                </method>
        </fence>
</clusternode>
<clusternode name="cfs5">
        <fence>
                <method name="single">
                        <device name="human" nodename="cfs5"/>
                </method>
        </fence>
</clusternode>
</clusternodes>
 
<fencedevices>
        <fencedevice name="gnbd" agent="fence_gnbd" servers="cfs1"/>
        <fencedevice name="human" agent="fence_manual"/>
</fencedevices>
 
</cluster>
 
 
 
Command
-----------
 
$ service ccsd start
Starting ccsd:                                             [  OK  ]
$ service cman start
Starting cman:                                             [FAILED]
 
Versions
---------
 
$ ccsd -V
ccsd DEVEL.1166467095 (built Dec 18 2006 10:39:27)
Copyright (C) Red Hat, Inc.  2004  All rights reserved.

$ cman_tool version
5.0.1 config 1
 
$ uname -a
Linux cfs1 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39 EDT 2006 i686 i686
i386 GNU/Linux

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20070122/4ba86bd3/attachment.htm>


More information about the Linux-cluster mailing list