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

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