Personal tools

Proxmox VE Cluster

From Proxmox VE

Jump to: navigation, search
Startpage with 2 Cluster nodes
Status of 3 Cluster nodes

Contents

Introduction

Proxmox VE Cluster enables central management of multiple physical servers. A Proxmox VE Cluster consists of one master and several nodes (minimum is a master and one node).

Main features

  • Centralized web management
  • One login and password for accessing all nodes and guests
  • Console view to all Virtual Machines
  • Migration of Virtual Machines between physical hosts
  • Synchronized Virtual Appliance template store

Create a Proxmox VE Cluster

First, install two Proxmox VE servers, see Installation. Make sure that each Proxmox VE server has a unique host name, by default all server has the same host name.

Currently the cluster creation has to be done on the console, you can login to the Proxmox VE server via ssh.

All settings can be done via "pveca", the PVE Cluster Administration Toolkit

USAGE: pveca -l             # show cluster status
       pveca -c             # create new cluster with localhost as master
       pveca -s [-h IP]     # sync cluster configuration from master (or IP)
       pveca -d ID          # delete a node
       pveca -a [-h IP]     # add new node to cluster
       pveca -m             # force local node to become master

Define the master

Login via ssh to the first Proxmox VE server.

Create the master:

pveca -c

To check the state of cluster:

pveca -l

Add a node to an existing master

Login via ssh to a second Proxmox VE server. Please note, the node should not have any VM´s. (If yes you will get conflicts with identical VMID´s - to workaround, use vzdump to backup and to restore to a different VMID after the cluster configuration).

Join a node to the master:

pveca -a -h IP-ADDRESS-MASTER

To check the state of cluster:

pveca -l

Display the state of cluster:

pveca -l
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
 1 : 192.168.7.104   M     A    5 days 01:43   0.54    20%     1%     4%
 2 : 192.168.7.103   N     A    2 days 05:02   0.04    26%     5%    29%
 3 : 192.168.7.105   N     A           00:13   1.41    22%     3%    15%
 4 : 192.168.7.106   N     A           00:05   0.54    17%     3%     3%

Working with Proxmox VE Cluster

Now, you can start creating Virtual Machines on Cluster nodes by using the Central Web-based Management on the master.

Troubleshooting

You can manually check the cluster configuration files on each node. Before you edit these files, stop the cluster sync and tunnel service via web interface.

nano /etc/pve/cluster.cfg

Also check if the following file are still up to date, if not because your keys got updated just remove/adapt it.

/root/.ssh/known_hosts

Delete and recreate a cluster configuration

Do the following on both nodes:

  • Stop the cluster sync (/etc/init.d/pvemirror) and tunnel service (/etc/init.d/pvetunnel).
  • rm /etc/pve/cluster.cfg
  • if your ssh keys changed: rm /root/.ssh/known_hosts
  • create the new cluster with pveca


Video Tutorials

Virtual Appliances
Language