Jump to content

ODROID N2+: Cannot install ZFS


Go to solution Solved by Nicola Zilio,

Recommended Posts

Posted (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 by Nicola Zilio
Posted
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 

 

  • Solution
Posted

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.

Posted

Ok, once again, I found a solution, though I don't understand why the following needs to be done:

  1. I uninstalled ZFS support via armbian-config
  2. I installed again ZFS support via armbian-config
  3. I force-installed the relevant package apt install --reinstall linux-headers-current-meson64

 

Posted (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 by Nicola Zilio
Posted
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 ...

Posted

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

Posted (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 by Dušan Plavák
Posted

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?

Posted
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.
image.png

 

On another system, where kernel is lower (6.12.17): (Ubuntu userspace)
 

image.png

 

Edit: let me also try to install it.

Posted
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

Posted (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 by Gunwoo Gim

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines