How to set up poor man's HA

G

GomoX

Guest
Hey everyone,

I'd like to set up my Proxmox cluster so that in the event of a node failure I am able to restart dead guests on another node. I don't need this to happen automatically nor "ASAP". I just need to have a fail over mechanism that doesn't involve restoring from back up, so powering up manually when someone notices the service went away is perfectly OK.

¿Is this set up possible? Assume for this purpose that shared storage remains available (I can deal with that) and that the guest has its image in it. All I would need is a way to get ahold of the machine while it's offline and "move it" ("moving it" meaning just the configuration info) to the other node where it can be rebooted.

If I'm not mistaken this should be simple (at least in theory). Can it be done?

Thanks!
 
Our distributed redundant configuration file system makes that simple:

node2# mv /etc/pve/nodes/<node1>/qemu-server/<vmid>.conf /etc/pve/nodes/<node2>/qemu-server/

Quite simple ;-)
 
Oh, cool, can this be done through the GUI? Or does the node 1 need to be up for that?
 
Oh, cool, can this be done through the GUI? Or does the node 1 need to be up for that?

No, that can't be done from GUI, because we want that users makes sure that node1 is 'down' when they do such things.

You should really make sure that node1 is not running, because else you run into the danger that the VM can be started on 2 nodes, which is usually dangerous.
 
Oh, got it.

When the dead node comes back online, does it resync its DRBD before starting any VMs? Meaning, if the node is really down, there won't be an issue when it comes back up, right?
 
Meaning, if the node is really down, there won't be an issue when it comes back up, right?

When the node comes back, it re-syncs the configuration file system /etc/pve/ before starting VMs. After that the node knows that you moved the VM and does not start it.
 

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!