I am having no luck with 5.18.1-arch1-1 currently. zfs-utils 2.1.4+65.r05147319b0-1 zfs-dkms 2.1.4+65.r05147319b0-2
I have removed and reinstalled zfs-utils and zfs-dkms after installing the new kernel to no avail.
Git Clone URL: | https://aur.archlinux.org/zfs-dkms.git (read-only, click to copy) |
---|---|
Package Base: | zfs-dkms |
Description: | Kernel modules for the Zettabyte File System. |
Upstream URL: | https://zfsonlinux.org/ |
Licenses: | CDDL |
Provides: | SPL-MODULE, zfs, ZFS-MODULE |
Submitter: | isiachi |
Maintainer: | kstolp |
Last Packager: | kstolp |
Votes: | 179 |
Popularity: | 6.41 |
First Submitted: | 2015-08-31 12:01 (UTC) |
Last Updated: | 2024-09-05 04:42 (UTC) |
« First ‹ Previous 1 .. 18 19 20 21 22 23 24 25 26 27 28 .. 63 Next › Last »
I am having no luck with 5.18.1-arch1-1 currently. zfs-utils 2.1.4+65.r05147319b0-1 zfs-dkms 2.1.4+65.r05147319b0-2
I have removed and reinstalled zfs-utils and zfs-dkms after installing the new kernel to no avail.
Works fine for me indeed. Builds for both kernels.
The archzfs version is still having the issues (forgot to mention, but I have been using that one for quite while now, but I switched back and forth more than once), so now we are back on this one on AUR again. :)
There was an update to this package on 2022-05-25 to handle kernel 5.18.
For anyone having issues with updating their kernel, make sure you update your zfs packages (aur) as well.
Currently working for me with:
zfs-dkms 2.1.4+65.r05147319b0-2
zfs-utils 2.1.4+65.r05147319b0-1
linux 5.18.1.arch1-1
@bazzawill - I set the ignore option in /etc/pacman.conf
to not update my kernels with:
IgnorePkg = linux-lts* linux-hardened*
(I build & update my kernels manually with arch-sign-modules
in AUR)
As @jongeduard mentioned if a build fails I just downgrade the kernel with pacman -U /path/to/kernel.pkg.zst /path/to/kernel-headers.pkg.zst
if the zfs
modules do not build.
The zfs
modules mostly build without problems for me as linux-lts
& linux-hardened
are not bleeding edge like linux-zen
. Rarely when there is major version change in gcc
I have to rebuild a whole kernel as all modules fail to build with a differing gcc
major version & a kernel built with a previous gcc
.
@bazzawill I am using ZFS with Arch Linux for roughly a year now. I have had build failures view times now, but they should not be a problem if you do a view things right.
Most of them where during a new kernel version release, while ZFS was indeed not ready the newest kernel version. And with a version I mean like this upgrade from 5.17 to 5.18, not the revision/build number for each regular kernel update.
My main solution: I have simply both the regular kernel and the LTS kernel installed. Most of build failures I have had where with the regular kernel, while the build for the LTS version failed only 1 time.
And since the LTS kernel is still more stable an reliable in general, I can also recommend you to boot the LTS kernel by default, when it comes to a NAS / file server with ZFS like I built at home. Unless your hardware really modern that it requires the new kernel with the newest drivers. But the 5.15 LTS version is fine for me now. Actually the 5.10 (which was the previous of the LTS) was already perfect.
Another thing I can recommend: preserve your cached packages in /var/cache/pacman/pkg/ up to a view versions (don't clean your packages with pacman -Sc, but use paccache for this, which let's you selectively remove the oldest versions), such that you can downgrade your kernel if needed.
From within that folder you can simply run a downgrade like: sudo pacman -U linux-5.17.9.arch1-1-x86_64.pkg.tar.zst linux-headers-5.17.9.arch1-1-x86_64.pkg.tar.zst
Don't forget to also downgrade nvidia or wifi drivers or other kernel modules if you have them too, they each install into a specific /lib/modules/<kernel-version>/ folder, which needs to be of a matching version.
And finally: also permanently keep your locally stored zfs-dkms and zfs-utils that you cloned from git in a folder, in which you also keep your built packages, such that you can reinstall these when needed as well.
So I just switched from the zfs-linux kernel to the dkms package and then I get hit with this. Just wondering how often this might occur. The issue is my system auto updates and because I had a power outage my system restarted and then my drives did not mount. Yes I know running a rolling release distro this can happen and some oversight when upgrading is wise but...
@fryfrog
Thanks for the link. Basically they fixed a NULL referencing pointer-to-a-struct by actual defining the struct and giving that to the pointer (if you have ever learned some C programming you'll probably know what I mean).
I really like their statement "Ah yes, the fun of compilers getting smarter and noticing when we did something foolish.", because that's so true.
And these things are indeed a good thing, it helps getting a thing like ZFS getting more safe and stable.
Not being able to build something has often very good reasons.
There are a number of commits in github issue #13463, hopefully they'll make a new release soon that supports it.
Looks like 5.18 isn't supported yet so I had to downgrade my kernel in order to not break my system outright.
==> dkms install --no-depmod zfs/2.1.4 -k 5.18.0-zen1-1-zen
Deprecated feature: REMAKE_INITRD
configure: error:
*** None of the expected "blk_queue_discard" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.1.4-1
*** Compatible Kernels: 3.10 - 5.17
Error! Bad return status for module build on kernel: 5.18.0-zen1-1-zen (x86_64)
Consult /var/lib/dkms/zfs/2.1.4/build/make.log for more information.
==> WARNING: `dkms install --no-depmod zfs/2.1.4 -k 5.18.0-zen1-1-zen' exited 10
@daemonjax - https://unix.stackexchange.com/a/364920/93470 (add unknown public key for makepkg)
building the snapshot from this page works ok
==> Leaving fakeroot environment.
==> Finished making: zfs-dkms 2.1.4-1 (Tue 26 Apr 2022 21:59:20 BST)
Pinned Comments
kstolp commented on 2023-09-29 00:34 (UTC)
When requesting changes, please include detailed reasoning for the change.
kstolp commented on 2023-01-07 09:31 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the two keys into your keyring. ArchWiki article. You can find the key IDs in the PKGBUILD file, in the
validpgpkeys
array. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)