Replication in Proxmox

serg1990io

New Member
Nov 20, 2024
2
0
1
Hello! I have a doubt about replication in Proxmox. I'm used to work with VMWare ESXi and Veeam Backup & Replication so I have a concept of "Replication" that, from what I understand, is different from the one I should have to understand the best practices in Proxmox.

I have two identical physical servers: with VMWare and Veeam I can schedule jobs to have on server B an exact replica of the VMs on server A. If a VM on server A goes wrong or even if the entire server A explodes, I can power on the VMs on server B and I'm good to go (obviously loosing data changed since the last successful replication job).

I understand that "Replication" in Proxmox works in a different way because it replicates just the VMs' disks: for this reason, even if I have replication enabled for VMs between server A and server B, if something goes wrong on server A I have to manually copy config files on server B before being able to start the VM. This sounds a bit silly to me because I'm replicating VMs between servers exactly because I want a solution in case server A fails.

From what I've read HA could be the solution to my problem, but I've read that for HA you need three physical servers, two are not enough.

Am I missing something? What's the best way to have a reliable protection against hardware failure (or software issues) and reduced downtime with two servers?

Replication doesn't seem like a viable option, same for HA, maybe I should just think about manual restore from backup on the second server? That doesn't sound optimal either because of downtime but maybe it's the most sensible solution.

Thank you for your support!
 
Well, you can either use Veeam again for Proxmox and do the same thing...

Or, put your machines in a cluster and enable HA - But have a third machine that's just for quorum. Then you can have your cake and eat it to. It just needs to be a device that can witness both nodes at the same time, just in case something happens to one, it can be the vote that says who is the winner to take over during an HA event.
 
  • Like
Reactions: Johannes S
Thank you for the reply! I've experimented with a new approach to the problem, building a two nodes cluster and 3 VMs (no HA):

Initial situation:
-------------------------------------------------------------
NODE-A:
-VM100
-VM101
-VM102

NODE-B:
Empty but receives replicas from NODE-A
-------------------------------------------------------------

When the first replication job is completed I manually copy VM .conf files from NODE-A (100.conf, 101.conf, 102.conf) and paste them on NODE-B (renaming them as 1100.conf, 1101.conf, 1102.conf).


Final result:
-------------------------------------------------------------
NODE-A:
-VM100
-VM101
-VM102

NODE-B:
-VM1100
-VM1101
-VM1102
-------------------------------------------------------------

If something goes wrong on NODE-A, the only thing I have to do is to start VMs on NODE-B. I've tried the concept on a real setup and it perfectly works, the only think I have to do is to keep VMs conf files in sync between the two servers (a pretty easy job considering that I've about 10 VMs that are modified very very rarely)

I wonder if this is a terrible approach or it could make sense (considering that besides of replication I always have backups managed with PBS, this would be just a quick way to restore VMs)

Any opinion would be highly apprecciated :)
 

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!