Changing/Replacing Master node

SamTzu

Renowned Member
I have been testing Proxmox and I am quite taken with it. Bravo, well done.

There are a few questions I have though, mostly to do with catastrophic hardware/software failure.

How does one replace a failed Cluster Master node?

I tried virtualising the Cluster Master and that works ok, but only on a VZ level. Inside a KVM/Qemu I am unable to create any more KVM based virtual machines. (Qemu container does not seem to support hardware level virtualisation that KVM needs.)

Is there a way to bypass this? I really would like to have virtual Master node for the ease of management.
If not I will just make two Different Clusters. One with Hardware based Cluster Master for KVM's and one with Virtual Cluster Master for VZ's.


Sam
 
Last edited:
I have been testing Proxmox and I am quite taken with it. Bravo, well done.

There are a few questions I have though, mostly to do with catastrophic hardware/software failure.

How does one replace a failed Cluster Master node?

I tried virtualising the Cluster Master and that works ok, but only on a VZ level. Inside a KVM/Qemu I am unable to create any more KVM based virtual machines. (Qemu container does not seem to support hardware level virtualisation that KVM needs.)

Is there a way to bypass this? I really would like to have virtual Master node for the ease of management.
If not I will just make two Different Clusters. One with Hardware based Cluster Master for KVM's and one with Virtual Cluster Master for VZ's.


Sam

KVM inside KVM is not possible on Proxmox VE - as far as I remember there is some experimental code in KVM (for AMD cpu´s only).
 
Ok, thanx for the fast reply. It was only a way to recover the Master Node easily.

How does one replace a failed Cluster Master node?

Sam

Just promote one of the remaining nodes to a new master and tell all other nodes to sync from the new master. (see 'man pveca')
 
New Proxmox Cluster Master

Just to clarify the steps...

to remove a master config and rebuild:

1. remove rm /etc/pve/cluster.cfg from all nodes (and master)
2. remove the stored ssh keys: rm /root/.ssh/known_hosts from all nodes (and master)
3. create a new cluster master: pveca -c
4. join nodes to the new master: pveca -a -h IP_MASTER

Is this correct?

What about the running Virtual Machines on host nodes?
Do we have to back them up somewhere for the duration and then restore them?


Sam
 
Last edited:
Just to clarify the steps...

to remove a master config and rebuild:

1. remove rm /etc/pve/cluster.cfg from all nodes (and master)
2. remove the stored ssh keys: rm /root/.ssh/known_hosts from all nodes (and master)
3. create a new cluster master: pveca -c
4. join nodes to the new master: pveca -a -h IP_MASTER

Is this correct?

What about the running Virtual Machines on host nodes?
Do we have to back them up somewhere for the duration and then restore them?


Sam

your howto is for a NEW cluster, but as you just need a new master, it is:

  1. force a node to a master: pveca -m
  2. tell all the other nodes to sync from the new master: pveca -s -h IP_of_new_master
running virtual machines on the nodes do not have to be stopped for this.
 
  • Like
Reactions: Adam Smith
Thank you.
This info is what most admins are looking for.

After doing some disaster recovery in M$ world I just have to love the simplicity of this approach. It's funny how, the older I get, the better I like the simple solutions.

Sam

:rolleyes:
 
I did the Cluster Master promotion (very easy) and it worked quite well.
I doubt that I will bother to virtualise the Master anymore since disaster recovery is so easy.
Over a decade in the nerd business has thought me the value of first thinking about the migration/migraine before doing anything else.

Now if someone could come up with a way to virtualise the user service accounts (like www&mail).
That would be heaven.


Sam
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!