New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Solved) - Syncing Issue (Possible duplicate of 678 681 - but my setup is different so didt think i should write it there) #683
Comments
After reading syncoid fails in Ubuntu 20.04.2 LTS kernel 5.11.0-25 due to zfs receive -s issue #665 Which explains that a wrong version of ZFS userspace (zfsutils-linux) and ZFS kernel module (in my case build into the kernel) is the reason for this. And Ubuntu 20.04.2 LTS kernel 5.11.0-25 zfs send | receive broken I tried to install Ubuntu 21.10 Beta in a VM.
And ZFS userspace and kernel module
I know the versions dont match exactly. But the Syncoid send/recieve worked without a hitch. So suppose i have to wait for Ubuntu 21.10 on some machines. Hope this will help others out there figuring this out. Best regards, |
I've expected this problem would eventually happen with Ubuntu having HWE kernels with zfs integrated, but the userspace tools of the original distro release. So... today with a 20.04.3 focal LTS HWE kernel 5.11 and the zfs 0.8.3 userspace, I set out to surgically upgrade the userspace tools. I succeeded using apt pinning. https://help.ubuntu.com/community/PinningHowto First, I added Then, since 5.11 is the hirsute kernel, I added the following to "/etc/apt/sources.list" (adjust for newer HWE kernels):
Then I created the file "/etc/apt/preferences.d/zfs.pref" and put the following in it:
Finally, I did a In the end I got:
|
Hi Garrett.
Another option may be to run the Jonathonf PPA which contains the latest
OpenZFS bits -- currently at 2.1.1.
https://launchpad.net/~jonathonf/+archive/ubuntu/zfs
I have lots of machines running that build and it is working well.
Geoff
…On 2021-10-24 6:17 p.m., Garrett Fields wrote:
I've expected this problem would eventually happen with Ubuntu having
HWE kernels with zfs integrated, but the userspace tools of the
original distro release. So... today with a 20.04.3 focal LTS HWE
kernel 5.11 and the zfs 0.8.3 userspace, I set out to surgically
upgrade the userspace tools. I succeeded using apt pinning.
https://help.ubuntu.com/community/PinningHowto
<https://help.ubuntu.com/community/PinningHowto>
First, I added |APT::Default-Release "focal";| to
"/etc/apt/apt.conf.d/01-vendor-ubuntu"
Then, since 5.11 is the hirsute kernel, I added the following to
"/etc/apt/sources.list" (adjust for newer HWE kernels):
|deb http://us.archive.ubuntu.com/ubuntu/ hirsute main restricted deb
http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
deb http://security.ubuntu.com/ubuntu hirsute-security main restricted |
Then I created the file "/etc/apt/preferences.d/zfs.pref" and put the
following in it:
|Package: zfsutils-linux Pin: release n=focal Pin-Priority: -10
Package: libnvpair3linux Pin: release n=focal Pin-Priority: -10
Package: libuutil3linux Pin: release n=focal Pin-Priority: -10
Package: libzfs4linux Pin: release n=focal Pin-Priority: -10 Package:
libzpool4linux Pin: release n=focal Pin-Priority: -10 Package: libc6
Pin: release n=focal Pin-Priority: -10 Package: libc6:i386 Pin:
release n=focal Pin-Priority: -10 Package: libc-bin Pin: release
n=focal Pin-Priority: -10 Package: libc-dev-bin Pin: release n=focal
Pin-Priority: -10 Package: fakeroot Pin: release n=focal Pin-Priority:
-10 Package: libfakeroot Pin: release n=focal Pin-Priority: -10
Package: locales Pin: release n=focal Pin-Priority: -10 Package:
libc:i386 Pin: release n=focal Pin-Priority: -10 Package: libc6-dbg
Pin: release n=focal Pin-Priority: -10 Package: libc6-dev Pin: release
n=focal Pin-Priority: -10 |
Finally, I did a |apt update && apt upgrade libc6 libc6:i386
zfsutils-linux|
In the end I got:
|# zfs version zfs-2.0.2-1ubuntu5.3 zfs-kmod-2.0.2-1ubuntu5.1 |
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#683 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQYXQDUCGNY6EFIUSWPVK3UISV2TANCNFSM5FMUU6AQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Plz. go to this page and vote this is a problem for you too if u read this post. When using HWE, zfs-kmod and zfs user tools versions must match |
Every time im trying to receive a Dataset. At the end of the transfer i get.
If i use the same command again there is allways data missing that it resyncs.
Followed by another error
This is my setup
Im receiving from Ubuntu 21.04 on RPI4 (ARM64)
Kernel version:
Linux rpi4-ubuntudesktop 5.11.0-1019-raspi #20-Ubuntu SMP PREEMPT Tue Sep 21 15:23:42 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
And receiving on Ubuntu 20.04 on RPI4 (x86_64)
Kernel Version:
Linux zboxri531-lubuntults 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
On both version im using the built in ZFS in kernel.
No dkms module in use here.
I followed the install guide for ubuntu and this is my syncoid version
I have done as described in Syncoid wiki on the end sending for non root user.
sudo zfs allow -u <MyUser> send,snapshot,hold <MyPool>
I have used
sudo su
on the receiving end so all commands are Super User.My command with debug is as following.
Doing the command again sometimes finishes it.
But then end with a new error.
cannot destroy snapshots: permission denied
Command with debug as follow
I hope its possible to be resolved.
Ty for reading,
Darkyere
The text was updated successfully, but these errors were encountered: