[SOLVED] Configure ZFS Replication

bibax

New Member
May 3, 2013
28
0
1
Hello everybody,

I would set up a zfs replication between 2 proxmox nodes (it's a cluster of 4 nodes) : proxmox and proxmox2

proxmox : pveversion
pve-manager/5.0-23/af4267bf (running kernel: 4.10.15-1-pve)

proxmox2 : pveversion
pve-manager/5.0-23/af4267bf (running kernel: 4.10.15-1-pve

I created on each node a zfspool :
proxmox : zpool create -f -o ashift=12 zfstore /dev/sdb /dev/sdc cache /dev/sda2 log /dev/sda1
proxmox2 : zpool create -f -o ashift=12 zfstore2 /dev/sdb /dev/sdc cache /dev/sda2 log /dev/sda1

I set 2 new zfs storage in datacenter :
proxmox : id=datas on zfsstore (zfs pool) with nodes proxmox and proxmox2 and enable
proxmox2 : id=datas2 on zfstore2 (zfs pool) with nodes proxmox and proxmox2 and enable

A vm was created on proxmox and I moved the disk in the storage "datas" (on proxmox)
And I created a new job replication on proxmox to have a replication on proxmox 2.
pvesr create-local-job 100-0 proxmox2 --schedule "*/5" --rate 10

But I have this error :
2017-08-08 17:09:01 100-0: start replication job
2017-08-08 17:09:01 100-0: guest => VM 100, running => 0
2017-08-08 17:09:01 100-0: volumes => datas:vm-100-disk-1
2017-08-08 17:09:02 100-0: (remote_prepare_local_job) could not activate storage 'datas', zfs error: cannot import 'zfstore': no such pool available
2017-08-08 17:09:02 100-0: (remote_prepare_local_job)
2017-08-08 17:09:02 100-0: end replication job with error: command '/usr/bin/ssh -o 'BatchMode=yes' -o 'HostKeyAlias=proxmox2' root@192.9.201.22 -- pvesr prepare-local-job 100-0 datas:vm-100-disk-1 --last_sync 0' failed: exit code 1

How could I activate the zfs storage datas on proxmox2?

thank you in advance for your help!

Regards
 
Hi Dietmar!

It works now! Thank you.
One more question, I don't see the vm on proxmox2.
So how can I try the replication of the VM 100?
And how could I restart my vm on proxmox2. Do I have to use HA for this?

kind regards
 
Hate to necro the post, but the is the only thing I've found online on configuring ZFS replication between two nodes. How exactly do you, "Please use the same pool name on both nodes, and configure only one zfs storage using than pool name."?
I'm fairly new to Proxmox and very new to understanding ZFS. Running PVE 5.4-3 on both nodes
 

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!