cman expected votes question

bessome

Renowned Member
Oct 29, 2012
22
1
68
I removed from config expected_votes="3", but status show still Expected votes: 3 and Quorum: 3. Why?

Code:
root@v1:~# cman_tool status
Version: 6.2.0
Config Version: 196
Cluster Name: cluster
Cluster Id: 38068
Cluster Member: Yes
Cluster Generation: 1264
Membership state: Cluster-Member
Nodes: 4
Expected votes: 3
Total votes: 4
Node votes: 1
Quorum: 3
Active subsystems: 6
Flags:
Ports Bound: 0 177
Node name: v1
Node ID: 1

<?xml version="1.0"?>
<cluster config_version="196" name="cluster">
  <totem window_size="150"/>
  <cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
 
if you have 3 nodes, you need at lease 2 votes to get quorum.

if you have 4 nodes, you need at least 3 votes to get quorum.

if you have 5 nodes, you need at least 3 votes to get quorum.

if you have 6 nodes, you need at least 4 votes to get quorum.

if you have 7 nodes, you need at least 4 votes to get quorum.

...
 
So, depending the number of nodes in a cluster, is not possible to change the needed votes to get quorum?

I want to change these values of needed votes for quorum and the number of votes for each node.
So, i'm asking me if can i change the votes of a node? For example, if i have a cluster of 5 nodes, by default, each node have only one vote, and the numbers of votes needed for quorum is 3... But if i change the numbers of votes of two nodes (that i called the big servers) to having 2 votes each (and let the other three nodes with one vote only), that give me a total of 7 votes, and i can change the expected votes to get quorum to 4. So, for quorum i only need the two "big servers", or one oh the big servers and two of the others...
is correct?

Greetings!