Categories
How-To Software Technical

Tech Short: Proxmox – Adding node to existing cluster

I’m back and testing proxmox once again.  This time I am adding my 3rd machine to the cluster. Performing this task is very simple to do and takes only a few moments of time to complete. With that said lets get into it.

First you will need to access the proxmox console or log via SSH to the new node; I am using putty for this.

Type the following to join:

pvecm add <ip address of cluster member>

Output:

root@proxmox3:~# pvecm add 1.2.3.3
The authenticity of host '1.2.3.3 (1.2.3.3)' can't be established.
ECDSA key fingerprint is af:09:3d:aa:8b:64:39:17:f0:0d:fc:79:19:bf:37:8a.
Are you sure you want to continue connecting (yes/no)? yes
root@1.2.3.3's password:
copy corosync auth key
stopping pve-cluster service
Stopping pve cluster filesystem: pve-cluster.
backup old database
Starting pve cluster filesystem : pve-cluster.
Starting cluster:
   Checking if cluster has been disabled at boot... [  OK  ]
   Checking Network Manager... [  OK  ]
   Global setup... [  OK  ]
   Loading kernel modules... [  OK  ]
   Mounting configfs... [  OK  ]
   Starting cman... [  OK  ]
   Waiting for quorum... [  OK  ]
   Starting fenced... [  OK  ]
   Starting dlm_controld... [  OK  ]
   Tuning DLM kernel config... [  OK  ]
   Unfencing self... [  OK  ]
generating node certificates
merge known_hosts file
restart services
Restarting PVE Daemon: pvedaemon.
Restarting PVE API Proxy Server: pveproxy.
successfully added node 'proxmox3' to cluster.

Once completed you can verify the status by typing:

pvecm status

Output:

root@proxmox3:~# pvecm status
Version: 6.2.0
Config Version: 3
Cluster Name: cluster
Cluster Id: 13364
Cluster Member: Yes
Cluster Generation: 112
Membership state: Cluster-Member
Nodes: 3
Expected votes: 3
Total votes: 3
Node votes: 1
Quorum: 2
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: proxmox3
Node ID: 3
Multicast addresses: 239.192.52.104
Node addresses: 1.2.3.1

And if you want to list all members of the cluster you simple type:

pvecm nodes

Output:

root@proxmox3:~# pvecm nodes
Node  Sts   Inc   Joined               Name
   1   M    128   2015-07-22 10:34:45  proxmox1
   2   M    128   2015-07-22 10:34:45  proxmox2
   3   M    116   2015-07-22 10:34:45  proxmox3

Once completed issue the host a reboot and that’s it.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.