[SOLVED] ZFS send recv fails on local machine

uiffiu

Member
Jun 26, 2020
19
4
23
36
Hello,

I use syncoid in a custom script to backup my with sanoid created snapshots to a HDD which I put in a 5,25" hotswap-bay when I want to run the script. This works since almost a year.
Now there is a problem with kernel 5.4.98-1 and 5.4.101-1, zfs send | zfs recv is not possible.
Syncoid throws a message like
most recent snapshot does not match incremental source
I also tried zfs send | zfs recv without syncoid, it fails. I think it was this error message:
cannot receive: failed to read from stream
A sync done every 2 hours to a remote machine via SSH works as normal.
After a lot of searching without success, I tried kernel 5.4.78-2 and it justs works as expected.

Between the last successful sync and the problem occured now, I switched hardware from an older HP Server to AMD Ryzen 5800X witch AsrockRack X570D4U. I was afraid to have an HW issue, but it seems not to be the case.

So ... how can I help and are there more people affected?
 
Last edited:
Hi!
Now there is a problem with kernel 5.4.98-1 and 5.4.101-1, zfs send | zfs recv is not possible
After a lot of searching without success, I tried kernel 5.4.78-2 and it justs works as expected.

The main difference between those two kernels is that the older ships ZFS 0.8.6 and the newer ones ship ZFS 2.0.3, the big version jump is not meaning that there were so many big changes, it's rather coming from a restructuration of the ZFS on Linux in the OpenZFS project.

What ZFS version and distribution does the sync target use?
 
Hi!



The main difference between those two kernels is that the older ships ZFS 0.8.6 and the newer ones ship ZFS 2.0.3, the big version jump is not meaning that there were so many big changes, it's rather coming from a restructuration of the ZFS on Linux in the OpenZFS project.

What ZFS version and distribution does the sync target use?
The problem appears on local sync.

Code:
root@:~# zfs version
zfs-0.8.5-pve1
zfs-kmod-2.0.3-pve2
root@:~# zpool upgrade
This system supports ZFS pool feature flags.

All pools are formatted using feature flags.

Every feature flags pool has all supported features enabled.
root@:~# zfs upgrade
This system is currently running ZFS filesystem version 5.

All filesystems are formatted with the current version.

then i ran apt update and apt upgrade:
Die folgenden Pakete sind zurückgehalten worden: zfs-initramfs zfs-zed zfsutils-linux 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.

Could this be the issue? Why are the packets kept back?

EDIT:
after apt full-upgrade the packages were updated and it says
Code:
~# zfs version
zfs-2.0.3-pve2
zfs-kmod-2.0.3-pve2

Upgraded all Pools, and the backupscript works again! I also now do the updates on the remote machine.
Thanks for pointing me into the right direction!
 
Last edited:

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!