Cluster creation

After logging in, it is now time to create our cluster. The command to create a
Proxmox cluster is as follows:

Proxmox VE 4.x (and all versions above) cluster enables central management of multiple physical servers
Note: First, install the Proxmox VE on all nodes, see Installation. Make sure that each Proxmox VE node is installed with the final hostname and IP configuration. Changing the hostname and IP is not possible after cluster creation.
Currently the cluster creation has to be done on the console, you can login to the Proxmox VE node via ssh.

Steps:

# pvecm create <cluster_name>

The cluster does not operate on master/slave basis, but on Quorum. In order to
achieve healthy cluster status, all nodes need to be online. Let’s execute the following
command and create the cluster:

root@pmxvm01:~# pvecm create pmx-cluster

After cluster creation is complete, check its status by using the following command:
root@pmxvm01:~# pvecm status

After the cluster has been created, the next step is to add Proxmox nodes into the
cluster. Securely log in to the other node and run the following command:
root@pmxvm02:~# pvecm add 192.168.145.1

Verify that this node is now joined with the cluster with the following command:
root@pmxvm02:~# pvecm nodes

 

Now lets view the status of each node

root@pmxvm02:~# pvecm status
Quorum information
——————
Date: Wed Apr 20 12:02:05 2016
Quorum provider: corosync_votequorum
Nodes: 1
Node ID: 0x00xxx001
Ring ID: 4
Quorate: Yes

Votequorum information
———————-
Expected votes: 1
Highest expected: 1
Total votes: 1
Quorum: 1
Flags: Quorate

Membership information
———————-
Nodeid Votes Name

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s