question about, Adding new proxmox host to cluster with fence device already setup.

kumarullal

Renowned Member
Jun 17, 2009
184
0
81
LA, USA
I have been struggling with this for a long time. Finally I succeeded.
I had created a cluster with 2 proxmox hosts with fence device enabled.
In the cluster.conf I had an entry from cman with 2 variables as (two_node="1") and (expected_votes="1")
Rest of the config as as per instructions. everything was working fine.
When I tried to add a new proxmox host to the cluster with pvecm add command, it could not start the cman service on the new host because it gave error of "2 nodes already setup, there a 3 nodes. could not start cman, waiting for quorum....
Finally, I changed in cman settings from (two_node=1") to (three_node=1") and also added the fence parameter for the 3rd node.
After doing that I could add the node to the cluster.
So my question is, if I have initially 3 nodes for a cluster. Looking to add more nodes in the future, if I add the cman variable (ten_node="1") and expected_votes="1") before hand will it be ok to do that?
Thanks in advance
 
Re: question about, Adding new proxmox host to cluster with fence device already setu

Any one?
So the question is:
If there are 3 node proxmox cluster with fencing enabled in cluster.conf, and now you want to add one or more nodes to the cluster what modifications are needed in cluster.conf file
the cman parameter of three_node="1" does it need to change to seven_node="1" assuming eventually there will be seven node cluster, but currently only 3 node cluster exists.
Also, do I have to add the fenceing parameter for the new nodes to be added to the cluster before running the command:
pvecm add xxxx (IP address of the main proxmox node)?
Please help.
Regards
 
Re: question about, Adding new proxmox host to cluster with fence device already setu

In the cluster.conf I had an entry from cman with 2 variables as (two_node="1") and (expected_votes="1")

You really should not run a cluster with such configuration, especially if you do not understand those setting!

For a 3-node cluster, please remove both settings (two_node and expected_votes)
 
Re: question about, Adding new proxmox host to cluster with fence device already setu

Thanks Dietmar for you quick response.
OK I will remove both the settings. However, the question still remains, do I have to add the fence configuration for the new node to be added before adding the new node to the cluster? Or I can add the new node to the cluster first and then modify the cluster.conf to add the new node in the fence device configuration in cluster.conf
Thanks in advance.
 
Re: question about, Adding new proxmox host to cluster with fence device already setu

Or I can add the new node to the cluster first and then modify the cluster.conf to add the new node in the fence device configuration in cluster.conf

Yes, add fence configuration after adding the node.