ZFS on Raspberry Pi - howto

  • Is there a way to add Proxmox Kernel and ZFS on Raspberry Pi 4? It can run a 64Bit Kernel.

    I tried to install ZFS on the RPI but it doesn run (although it installs the plugin).

    I also tried to install the OMB Kernel PLugin (for Proxmox) but OMV7 says Plugin is not available.

    Is there anything I can do?

    many thanks

    OMV6 HP t630

    OMV6 Xeon / i5 - SCSI PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD)

    • Official Post

    You cannot install a proxmox kernel, that is limited to amd64 systems, it is not applicable to arm systems like on a Raspberry.

    I don't use Raspberrys to run servers on them, but I know you can install ZFS on them, although many people will tell you it's not worth it. In any case you will not be able to create a Raid if the units are connected by USB, so this would only work if it is a Raspberry Pi5 and in your case it is a Raspberry Pi4.

    • Official Post

    Is there a way to run a Linux Raid on the RPI?

    Is there a way on RPi4? yes. From OMV on an RPi4? no. usb and raid is bad idea and OMV prevents this.

    I tried to install ZFS on the RPI but it doesn run (although it installs the plugin).

    I'm not sure what you mean but if you install the linux headers (plugin doesn't do this on non-amd64 systems) and zfs-dkms is able to compile the zfs module, zfs will work. Although in my tests, it is not very stable.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    how do i do this? You mean the Kernel Plugin or someting different?

    The kernel plugin is meant to the install the Proxmox kernel on amd64 systems and download amd64 isos for rescue booting. None of it works on non-amd64 systems which is why you don't see it on the RPi.


    sudo apt-get install raspberrypi-kernel-headers


    But just remember, zfs is raid and the plugin will not let you use usb disks. So, I see little reason to install it on an RPi.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • ok thanks. I know OMV is not supportive of raid over USB but once installed, can I create a ZFS Raid from CLI?

    Its just meant for testing...

    OMV6 HP t630

    OMV6 Xeon / i5 - SCSI PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD)

    • Official Post

    can I create a ZFS Raid from CLI?

    Sure.

    Its just meant for testing...

    It would be much easier to test in an amd64 VM.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • So I installed the kernel headers and ZFS and rebooted.
    When I try to create apool its complainng...

    Code
    The ZFS modules cannot be auto-loaded.
    Try running 'modprobe zfs' as root to manually load them.
    
    running "modprobe zfs" gives me:
    modprobe: FATAL: Module zfs not found in directory /lib/modules/6.6.42-v8+

    Do you know what I am missing?

    OMV6 HP t630

    OMV6 Xeon / i5 - SCSI PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD)

    • Official Post

    Did you install zfs-dkms before installing the plugin? It didn't compile correctly it seems and can't load the zfs module because of this.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Installing dkms gives me

    Code
    zfs-dkms is already the newest version (2.2.3-1~bpo12+1~rpt1).

    Is this right?

    I am on this Kernel

    Code
    Linux rpi42 6.6.42-v8+ #1787 SMP PREEMPT

    OMV6 HP t630

    OMV6 Xeon / i5 - SCSI PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD)

    • Official Post

    Did you happen to see this message when trying to install?

    kernel headers for this kernel do not seem to be installed.


    Evidently, the raspberrypi-kernel-headers package doesn't the 6.6 kernel headers.


    I don't have time right now to figure out the right package to install. I'm sure someone on the RPi forum or elsewhere has done it.

    omv 7.4.8-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.5 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!