[SOLVED] Replication does ... nothing?

Razva

Renowned Member
Dec 3, 2013
252
10
83
Romania
cncted.com
Hey,

I've successfully setup two Proxmox 5 nodes and created a cluster. All machines have the same specs/drives.

Per requirements I'm using ZFS:
Code:
root@pmx1:~# zfs list
NAME               USED  AVAIL  REFER  MOUNTPOINT
rpool             5.38G   398G    96K  /rpool
rpool/ROOT        1.13G   398G    96K  /rpool/ROOT
rpool/ROOT/pve-1  1.13G   398G  1.13G  /
rpool/data          96K   398G    96K  /rpool/data
rpool/swap        4.25G   402G    64K  -

I've created the ZFS mount from the UI:
09.12.2017-12.30.png


I've created a VM, which is stored on the ZFS mount I previously created:
09.12.2017-12.34.png


Lastly I've created a Replication task that should run once at 5 minutes:
09.12.2017-12.37.png


Well...guess what? It does nothing. Like...really nothing. There is no content on the Target ZFS directory.

I've tried to create one ZFS mount point per server and recreate the Replication job. Same result.

What am I doing wrong here? Any way to debug this?

As an added "bonus", I cannot delete the Replication task. I click on Remove -> Yes, nothing happens.

Thanks,
Razvan
 
Hi,

from the source node what do you get if you run this command?

Code:
pvesr run --id 104-0 --verbose
 
Hi,

from the source node what do you get if you run this command?

Code:
pvesr run --id 104-0 --verbose
Here's the result.

Please note that:
- there were no hostname or IP changes involved
- cluster was successfully created by using the standard wiki method
- "pvecm nodes" posts both nodes and "pvecm status" posts no errors
- I've changed the default SSH port, per this thread

I've already tried:
- running "pvecm updatecerts"
- adding each LAN IP + hostname on each server's /etc/hosts
- I'm currently running 5.0-31 on both machines, so I guess this patch is already applied

Later edit: changing back the SSH port from custom to default (22) solved the "Host key verification failed" error. No idea why Proxmox's "/usr/bin/ssh" command execution doesn't interprets settings from /etc/ssh/ssh_config. Any hints?
 
Last edited:
After solving the "Host key verification failed" problem the sync works between ZFS mounts.

But...is this the only result? I was expecting full mirroring of a VM from a host to another, including config files etc. Having a replicated raw image of a VM is useful, but in this case we're talking about backups, not replication.

Maybe I'm missing something?
 
I do not understand your problem, the config is stored in the cluster files system so every node has a copy.
In case of a node will fail you have to copy the config to the correct dir and your VM is up again.
 
I do not understand your problem, the config is stored in the cluster files system so every node has a copy.
In case of a node will fail you have to copy the config to the correct dir and your VM is up again.
Ok, I was under the impression that the replication is "full", including config files etc. As "you can fully replicate this VM to another node, and in case things go south you just push Start on the backup node". But I guess I'm wrong?

In this case can replication be combined with HA? Yes, data loss between syncs is obvious and acceptable in my use case.
 
yes but please be aware of the caveats described here:
https://pve.proxmox.com/wiki/Storage_Replication
Works like a charm, thank you!

Here's another question. I have 3 nodes. I'm replicating from node1 to node2; node3 contains other stuff. If node1 goes down, is Proxmox "smart enough" to migrate VMs from node1 just to node2, this being the single node that has node1 data replicated? Because obviously failing over from node1 to node3 will be a no-go, as node3 doesn't has any data from node1. Thank you!
 
you can define this yourself, just create a ha group with only node1 and node2 in it and give the vm in this group
 

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!