[SOLVED] [pve-zsync] error on local sync

DzAirmaX

Member
Sep 8, 2016
10
3
23
Hi,

I think I found a possible bug in pve-zsync. The schema is simple:
  • I want to create a snapshot of a pool to a dataset on another pool
  • This is a local snapshot, no ssh
  • Both of the pool / dataset exist
    • source: rpool
    • dest: test/weekly
Here is the full error msg:

Code:
pve-zsync sync --source rpool --dest test/weekly --name test1 --maxsnap 4 --method local
Use of uninitialized value in concatenation (.) or string at /usr/sbin/pve-zsync line 898.
COMMAND:
        zfs send -- rpool@rep_test1_2016-09-08_00:20:23 | zfs recv -F -- test/weekly/
GET ERROR:
        cannot receive: invalid name

The problem is that the snapshot is not created on rpool, so it cannot be sent.

I thought first it was a zfs restriction. But "zfs snapshot rpool@test1" does create a snapshot of the pool.

Code:
zfs list -t snapshot
NAME  USED  AVAIL  REFER  MOUNTPOINT
rpool@test1  0  -  96K  -


I think pve-zsync is struggling with creating snapshot at the "root" level of a pool...
What is your thinking? Is a fix possible?
 
Hi,

this is not a bug.
What you try to do is a recursive send/receive and this is not implemented.
 

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!