Replication without snapshots & stop replication job.

Oct 4, 2019
37
7
28
40
Two questions:
1. Is it possible to set up automatic replication of a VM between two nodes without replicating all snapshots?
I. e. replicating only the current machine state, but not the snapshots taken of it before? I take daily and weekly snapshots (retain six weekly and seven daily) locally on my production machine and replicating them to the backup node takes too long. Since it replicates them as thirteen full disk images, as opposed to incremental data changes.

2. Is it possible to either via the GUI or the command line, stop a replication job that is currently running?
If yes, and in the command line, what is the syntax/command to use? If I run "ps aux | grep repli" on the host i get the below result.
root@proxmox:~# ps aux | grep repli
root 17734 0.0 0.0 6072 892 pts/5 S+ 09:53 0:00 grep repli

root 27409 0.0 0.0 3732 2544 ? S 08:38 0:00 /bin/bash -c set -o pipefail && pvesm export spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_104-0_1604907480__ | /usr/bin/cstream -t 20000000 | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve2' root@192.168.0.41 -- pvesm import spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -allow-rename 0

root 27410 0.0 0.1 294120 79104 ? S 08:38 0:00 /usr/bin/perl /sbin/pvesm export spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_104-0_1604907480__

root 27556 3.2 0.0 85764 5420 ? Sl 08:38 2:26 zfs send -Rpv -- spool/data/vm-104-disk-0@__replicate_104-0_1604907480__
 
Last edited:
Two questions:
1. Is it possible to set up automatic replication of a VM between two nodes without replicating all snapshots?
I. e. replicating only the current machine state, but not the snapshots taken of it before? I take daily and weekly snapshots (retain six weekly and seven daily) locally on my production machine and replicating them to the backup node takes too long. Since it replicates them as thirteen full disk images, as opposed to incremental data changes.

replication does incremental if possible. only the first replication will obviously (have to) be full

2. Is it possible to either via the GUI or the command line, stop a replication job that is currently running?
If yes, and in the command line, what is the syntax/command to use? If I run "ps aux | grep repli" on the host i get the below result.
root@proxmox:~# ps aux | grep repli
root 17734 0.0 0.0 6072 892 pts/5 S+ 09:53 0:00 grep repli

root 27409 0.0 0.0 3732 2544 ? S 08:38 0:00 /bin/bash -c set -o pipefail && pvesm export spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_104-0_1604907480__ | /usr/bin/cstream -t 20000000 | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve2' root@192.168.0.41 -- pvesm import spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -allow-rename 0

root 27410 0.0 0.1 294120 79104 ? S 08:38 0:00 /usr/bin/perl /sbin/pvesm export spool-data:vm-104-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_104-0_1604907480__

root 27556 3.2 0.0 85764 5420 ? Sl 08:38 2:26 zfs send -Rpv -- spool/data/vm-104-disk-0@__replicate_104-0_1604907480__
you can kill the running 'pvesr' process, that should stop the currently replication job. this is akin to that process dieing, so you'll have leftovers on both sides that should be cleaned up by the next replication run.
 

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!