Red Hat Bugzilla – Bug 126743
cman won't start for a 2-node cluster
Last modified: 2010-01-11 21:53:04 EST
Description of problem:
Attempted to start cman_tool for a 2 node cluster. Failed even when
-e 1 was set correctly.
[root@link-11 /]# cman_tool -h
cman_tool <join|leave|kill|expected|votes> [options]
-m <addr> * Multicast address to use (combines with -i)
-i <ifname> * Interfaces for above multicast addresses
-v <votes> Number of votes this node has (default 1)
-e <votes> Number of expected votes for the cluster (no default)
[root@link-11 /]# cman_tool -2 -e 1 join
cman_tool: expected_votes must be 1 with special two node mode
[root@link-11 /]# echo $?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Without the -X switch, cman_tool will use CCS.
CCS currently overrides the command-line (which is arguably wrong) so
what's happening here is that you are adding -2 to the join parameters
but expected votes is coming from CCS.
ccs_tool needs to be more intuitive about what it does with parameters.
cman_tool will now print a general warning when it's about to
override any command line options with values from ccs. The error
messages also include the invalid values now so it should be easier
to see what's wrong.
saw the new general warning and the error message with invalid value.
Updating version to the right level in the defects. Sorry for the storm.