Nicola Zilio Posted November 24, 2024 Posted November 24, 2024 (edited) Dear all, I am trying to install ZFS on my ODROID N2+ without success. I am sure this question has been asked before, but I don't think the answers I found are still relevant, unfortunately. Linux odroid 6.6.47-current-meson64 #3 SMP PREEMPT Mon Aug 19 04:04:32 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux BOARD=odroidn2 BOARD_NAME="Odroid N2" BOARDFAMILY=meson-g12b BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=89476e86f LINUXFAMILY=meson64 ARCH=arm64 BOOT_SOC= IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm64 KERNEL_IMAGE_TYPE=Image KERNEL_TARGET=current,edge KERNEL_TEST_TARGET=current FORCE_BOOTSCRIPT_UPDATE=yes FORCE_UBOOT_UPDATE= OVERLAYDIR="/boot/dtb/amlogic/overlay" VENDOR="Armbian" VENDORDOCS="https://docs.armbian.com" VENDORURL="https://www.armbian.com" VENDORSUPPORT="https://forum.armbian.com" VENDORBUGS="https://www.armbian.com/bugs" BOOTSCRIPT_FORCE_UPDATE="yes" BOOTSCRIPT_DST="boot.cmd" VERSION=24.8.4 REVISION=24.8.4 BRANCH=current Using armbian-config, I installed the kernel headers, and also the full firmware for good measure. After restarting the board, I run `apt install zfs-dkms zfsutils-linux`, but I get Preparing to unpack .../zfsutils-linux_2.2.6-0arter97~ubuntu22.04.1_arm64.deb ... Unpacking zfsutils-linux (2.2.6-0arter97~ubuntu22.04.1) ... Selecting previously unselected package zfs-dkms. Preparing to unpack .../zfs-dkms_2.2.6-0arter97~ubuntu22.04.1_all.deb ... Unpacking zfs-dkms (2.2.6-0arter97~ubuntu22.04.1) ... Setting up zfsutils-linux (2.2.6-0arter97~ubuntu22.04.1) ... modprobe: FATAL: Module zfs not found in directory /lib/modules/6.6.47-current-meson64 Trying to create a pool raises this error zpool create wdred_zpool raidz2 x y z The ZFS modules cannot be auto-loaded. Try running 'modprobe zfs' as root to manually load them. modprobe zfs modprobe: FATAL: Module zfs not found in directory /lib/modules/6.6.47-current-meson64 Any ideas? Thank you in advance. Edited November 24, 2024 by Nicola Zilio 0 Quote
Igor Posted November 24, 2024 Posted November 24, 2024 6 hours ago, Nicola Zilio said: Any ideas? If you only shows symptoms but not providing logs, we are in the dark. Perhaps headers install was not successful ? Or who knows what ... armbianmonitor -u 0 Quote
Solution Nicola Zilio Posted November 25, 2024 Author Solution Posted November 25, 2024 Hi @Igor, Thank you for following up on this! In the end, coincidentally I think, I managed to get it to work. I saw that a new armbian package was available via apt. I installed it, and because it included kernel 6.6.61-current-meson64, I saw that when this was being built, one of the steps was to write the headers for ZFS. I restarted my board, and now ZFS works. 0 Quote
Nicola Zilio Posted December 8, 2024 Author Posted December 8, 2024 @Igor, I have now upgraded to kernel 6.6.63 and in the process ZFS support was removed. The compilation process even stated that it would do that because some module was missing. I don't really understand why it would do that. Here's the link for the output of armbianmonitor -u, https://paste.next.armbian.com/axogecixoy. Thanks in advance. 0 Quote
Nicola Zilio Posted December 8, 2024 Author Posted December 8, 2024 Ok, once again, I found a solution, though I don't understand why the following needs to be done: I uninstalled ZFS support via armbian-config I installed again ZFS support via armbian-config I force-installed the relevant package apt install --reinstall linux-headers-current-meson64 0 Quote
Igor Posted December 8, 2024 Posted December 8, 2024 There are some troubles, some caused by us, some by 3rd party. Improved mechanism is about to be merged https://github.com/armbian/configng/pull/308 0 Quote
Nicola Zilio Posted December 12, 2024 Author Posted December 12, 2024 (edited) @Igor, I'm sorry to bother about this again, but after an additional upgrade, things have gotten even more complicated. When I try to enable ZFS support I get the following error Reading package lists... Done Building dependency tree... Done Reading state information... Done zfs-dkms is already the newest version (2.2.7-0arter97~ubuntu22.04.1). Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: zfsutils-linux : Breaks: zfs-dkms (> 2.2.6-0arter97~ubuntu22.04.1...) It seems that zfsutils-linux and zfs-dkms are incompatible. Edited December 12, 2024 by Nicola Zilio 0 Quote
Igor Posted December 12, 2024 Posted December 12, 2024 4 hours ago, Nicola Zilio said: It seems that zfsutils-linux and zfs-dkms are incompatible. I just update ZFS today and didn't run into those problems: filename: /lib/modules/6.6.63-current-x86/updates/dkms/zfs.ko version: 2.2.7-0arter97~ubuntu22.04.1 Try to reinstall zfsutils-linux and zfs-dkms. Ubuntu provides 2.2.7, which does not exists upstream ... 0 Quote
Nicola Zilio Posted December 12, 2024 Author Posted December 12, 2024 From what I can see, they are (?) root@odroid:/# apt-cache policy zfsutils-linux zfsutils-linux: Installed: 2.2.6-0arter97~ubuntu22.04.1 Candidate: 2.2.6-0arter97~ubuntu22.04.1 Version table: *** 2.2.6-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 100 /var/lib/dpkg/status 2.2.5-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 2.2.4-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 2.1.5-1ubuntu6~22.04.4 500 500 http://ports.ubuntu.com jammy-security/main arm64 Packages 500 http://ports.ubuntu.com jammy-updates/main arm64 Packages 2.1.2-1ubuntu3 500 500 http://ports.ubuntu.com jammy/main arm64 Packages root@odroid:/# apt-cache policy zfs-dkms zfs-dkms: Installed: 2.2.6-0arter97~ubuntu22.04.1 Candidate: 2.2.7-0arter97~ubuntu22.04.1 Version table: 2.2.7-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 500 http://apt.armbian.com jammy/jammy-utils all Packages *** 2.2.6-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 500 http://apt.armbian.com jammy/jammy-utils all Packages 100 /var/lib/dpkg/status 2.2.5-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 500 http://apt.armbian.com jammy/jammy-utils all Packages 2.2.4-0arter97~ubuntu22.04.1 500 500 http://apt.armbian.com jammy/jammy-utils arm64 Packages 500 http://apt.armbian.com jammy/jammy-utils all Packages 2.1.5-1ubuntu6~22.04.4 500 500 http://ports.ubuntu.com jammy-security/universe arm64 Packages 500 http://ports.ubuntu.com jammy-updates/universe arm64 Packages 2.1.2-1ubuntu3 500 500 http://ports.ubuntu.com jammy/universe arm64 Packages I managed to resolve the issue by specifying the version to use, in this case 2.2.6-0arter97~ubuntu22.04.1 0 Quote
Dušan Plavák Posted February 23 Posted February 23 (edited) What worked for me is instead of running: sudo apt install -y zfsutils-linux zfs-dkms Install it separately: sudo apt install -y zfs-dkms and then sudo apt install -y zfsutils-linux So first it installed zfs-dkms version 2.2.7 but when I install zfsutils-linux I noticed it uninstalled dkms and installed required version 🤷♂️ Nevermind.it probably does not work. It will install the packages but zfs does not work. Need to dig deeper. Edited February 23 by Dušan Plavák 0 Quote
Igor Posted February 23 Posted February 23 6 hours ago, Dušan Plavák said: it probably does not work. It depends. It might not work on weird private kernels (vendor v6.1.99), but it works on mainline based ones (<= 6.12) it has to. It works on Bookworm, while on Noble it will work tomorrow: https://github.com/armbian/os/pull/285 Test build succeeded: https://github.com/armbian/os/actions/runs/13486581225/job/37678541738 0 Quote
Nicola Zilio Posted March 15 Author Posted March 15 Just a quick update. Updating the kernel to the latest version (v6.12.17) causes ZFS to break. Trying to install zfs-dkms v 2.2.6-0arter97~ubuntu22.04.1 fails with this version of the kernel Unpacking zfs-dkms (2.2.6-0arter97~ubuntu22.04.1) ... Setting up zfs-dkms (2.2.6-0arter97~ubuntu22.04.1) ... Loading new zfs-2.2.6 DKMS files... It is likely that 6.12.16-current-meson64 belongs to a chroot's host Building for 6.12.17-current-meson64 Building initial module for 6.12.17-current-meson64 Error! Bad return status for module build on kernel: 6.12.17-current-meson64 (aarch64) Consult /var/lib/dkms/zfs/2.2.6/build/make.log for more information. dpkg: error processing package zfs-dkms (--configure): installed zfs-dkms package post-installation script subprocess returned error exit status 10 Processing triggers for initramfs-tools (0.140ubuntu13.4) ... update-initramfs: Generating /boot/initrd.img-6.12.17-current-meson64 update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.12.17-current-meson64 Image Name: uInitrd Created: Tue Mar 4 22:12:09 2025 Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 27871025 Bytes = 27217.80 KiB = 26.58 MiB Load Address: 00000000 Entry Point: 00000000 v2.2.7 can be built but it is still incompatible with the most recent version of zfsutils-linux available. Reverting back to kernel v6.6.63 solves all of these problems. @Igor is there any way to know whether ZFS is supported with a specific kernel version, before installing it? 0 Quote
Igor Posted March 15 Posted March 15 12 minutes ago, Nicola Zilio said: is there any way to know whether ZFS is supported with a specific kernel version, before installing it? Partially if you are going to install it via armbian-config https://github.com/armbian/configng/commit/b49c9fd6710f42ef253659c86c57b1db55615a77 For example: i am running 6.13.5-edge-x86 and I don't have an option to install ZFS as there is no support for it. On another system, where kernel is lower (6.12.17): (Ubuntu userspace) Edit: let me also try to install it. 0 Quote
Igor Posted March 16 Posted March 16 apt-cache policy zfsutils-linux zfsutils-linux: Installed: 2.3.1-1arter97~ubuntu24.04.1 Candidate: 2.3.1-1arter97~ubuntu24.04.1 Version table: *** 2.3.1-1arter97~ubuntu24.04.1 500 500 https://apt.armbian.com noble/noble-utils arm64 Packages 100 /var/lib/dpkg/status works as expected / OOB: root@orangepi5:~# modinfo zfs filename: /lib/modules/6.12.19-current-rockchip64/updates/dkms/zfs.ko version: 2.3.1-1arter97~ubuntu24.04.1 license: CDDL license: Dual BSD/GPL license: Dual MIT/GPL author: OpenZFS description: ZFS alias: zzstd alias: zcommon alias: zunicode alias: znvpair alias: zlua alias: icp alias: zavl alias: devname:zfs alias: char-major-10-249 srcversion: 2742833EE1C14D857611F06 depends: spl name: zfs vermagic: 6.12.19-current-rockchip64 SMP preempt mod_unload aarch64 https://paste.armbian.com/unumubupog 0 Quote
Nicola Zilio Posted March 16 Author Posted March 16 Good to know. Would the Ubuntu version also matter for this? You tried with Noble, I am on Jammy. 0 Quote
Gunwoo Gim Posted March 19 Posted March 19 (edited) I believe we need to contact the maintainer of `http://apt.armbian.com jammy-utils` so that they can synchronize the versions of linux-dtb-current-meson64 linux-headers-current-meson64 linux-image-current-meson64 zfs-dkms zfsutils-linux Any contact information?? Edited March 19 by Gunwoo Gim 0 Quote
Gunwoo Gim Posted March 23 Posted March 23 I think the solution is on its way to Armbian Jammy 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.