Git Product home page Git Product logo

Comments (18)

jackpot51 avatar jackpot51 commented on July 29, 2024 3

We may want to adjust packaging in 21.10 to install zfs-dkms if zfutils-linux is installed.

from linux.

DCrompton324 avatar DCrompton324 commented on July 29, 2024 1

It works after the below, thanks Jeremy

sudo apt install zfs-dkms
sudo /sbin/modprobe zfs

from linux.

cinimodev avatar cinimodev commented on July 29, 2024 1

I want to follow up on this. It appears zfs-dkms will install correctly after upgrading to Pop 21.10. I was previously on 21.04 and before wiping for a different distro I upgraded, then re-installed both zfsutils-linux and zfs-dkms. After installing, modprobe zfs and then re-import the pools. After doing this, everything is working.

Nothing I did on 21.04 would work. However, after upgrading to 21.10 OpenZFS installed correctly.

I am still concerned that with frequent kernel updates that this will be a recurring issue. Personally, I would prefer to stay on the LTS kernel for my primary workstation to avoid update breakage.

from linux.

jackpot51 avatar jackpot51 commented on July 29, 2024

You should use the ZFS DKMS module with 5.15. Does that work?

from linux.

jgust avatar jgust commented on July 29, 2024

For 21.04 this worked for me:

# Remove both zfs-dkms and zfsutils-linux (in case they are installed)
sudo apt remove zfs-dkms
sudo apt remove zfsutils-linux
# Download and install the zfs-dkms package from 21.10
wget -P ~/Download http://archive.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms_2.0.6-1ubuntu2.1_all.deb
sudo dpkg -i ~/Downloads/zfs-dkms_2.0.6-1ubuntu2.1_all.deb
sudo /sbin/modprobe zfs
# Re-install zfsutils-linux
sudo apt install zfsutils-linux

from linux.

 avatar commented on July 29, 2024

I'm on 21.04 but the solution given by jgust does not work for me: the version of zfsutils-linux in 21.04 conflicts with the version required by zfs-dkms in 21.10. As of now my system is broken and I'm not able to mount my home directory.

I've managed to make the system useable again for the moment by changing the kernel the system boots with to the last working 5.13 version, though I feel this is a brittle fix that will break when I update my kernel again.

from linux.

jkhii avatar jkhii commented on July 29, 2024

This also breaks on 20.04 after recent update. I had to boot to 5.13 kernel.

from linux.

jgust avatar jgust commented on July 29, 2024

I'm on 21.04 but the solution given by jgust does not work for me: the version of zfsutils-linux in 21.04 conflicts with the version required by zfs-dkms in 21.10. As of now my system is broken and I'm not able to mount my home directory.

@anahata0108, Weird that you had a different behavior on 21.04. After installing the packages i mentioned previously I end up with:

dpkg -s zfsutils-linux
Package: zfsutils-linux
Status: install ok installed
Priority: optional
Section: contrib/admin
Installed-Size: 1511
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Source: zfs-linux
Version: 2.0.2-1ubuntu5.3
Replaces: spl (<< 0.7.9-2), spl-dkms
Provides: zfsutils
Depends: libnvpair3linux (= 2.0.2-1ubuntu5.3), libuutil3linux (= 2.0.2-1ubuntu5.3), libzfs4linux (= 2.0.2-1ubuntu5.3), libzpool4linux (= 2.0.2-1ubuntu5.3), python3, libblkid1 (>= 2.16), libc6 (>= 2.33), libuuid1 (>= 2.16)
Pre-Depends: init-system-helpers (>= 1.54~)
Recommends: lsb-base, zfs-zed
Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs | zfs-dracut
Breaks: openrc, spl (<< 0.7.9-2), spl-dkms (<< 0.8.0~rc1), zfs-dkms (>> 2.0.2-1ubuntu5.3...), zfs-dkms (<< 2.0.2-1ubuntu5.3)
Conflicts: zfs, zfs-fuse
Conffiles:
 /etc/cron.d/zfsutils-linux 988b0007fc4d08bb239f7857d7403c87
 /etc/default/zfs 75603cca7a73a251e272024c5f06b93e
 /etc/init.d/zfs-import 4ed1fff952ac0641ff6650dad1983623
 /etc/init.d/zfs-mount 5c235ec583e083d0eac63c5060856c42
 /etc/init.d/zfs-share 40cf9308ba8681eea005fbd06bce3785
 /etc/sudoers.d/zfs ad829cd4055ab2a8d41f8b5f2b564a3f
 /etc/zfs/zfs-functions a02507b820abff58a2f9f0b758a3040b
Description: command-line tools to manage OpenZFS filesystems
 OpenZFS is a storage platform that encompasses the functionality of
 traditional filesystems and volume managers. It supports data checksums,
 compression, encryption, snapshots, and more.
 .
 This package provides the zfs and zpool commands to create and administer
 OpenZFS filesystems.
Homepage: https://zfsonlinux.org/
Original-Maintainer: Debian ZFS on Linux maintainers <[email protected]>
dpkg -s zfs-dkms
Package: zfs-dkms
Status: deinstall ok config-files
Priority: optional
Section: contrib/kernel
Installed-Size: 17127
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Source: zfs-linux
Version: 2.0.6-1ubuntu2.1
Config-Version: 2.0.6-1ubuntu2.1
Replaces: spl-dkms
Provides: zfs-modules
Depends: dkms (>> 2.1.1.2-5), file, libc6-dev | libc-dev, lsb-release, python3-distutils | libpython3-stdlib (<< 3.6.4), debconf (>= 0.5) | debconf-2.0, perl:any
Recommends: zfs-zed, zfsutils-linux (>= 2.0.6-1ubuntu2.1), linux-libc-dev (<< 5.15~), linux-libc-dev (>= 3.10~)
Suggests: debhelper
Breaks: spl-dkms (<< 0.8.0~rc1)
Description: OpenZFS filesystem kernel modules for Linux
 OpenZFS is a storage platform that encompasses the functionality of
 traditional filesystems and volume managers. It supports data checksums,
 compression, encryption, snapshots, and more.
 .
 This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of
 OpenZFS.
Homepage: https://zfsonlinux.org/
Original-Maintainer: Debian ZFS on Linux maintainers <[email protected]>

As you can see, neither depends on the other so its strange you were getting conflicts. Are you on the same versions?

One step I realize I forgot to mention was after removing zfs-dkmsand zfsutils-linux I also did a sudo apt autoremove which removed other zfs releated packages that were no longer in use. These were then automatically re-installed when re-installing zfsutils-linux

from linux.

 avatar commented on July 29, 2024

Regardless of which versions I have, installing a package from 21.10 shouldn't be necessary to upgrade on 21.04 or 20.04. This is clearly a kluge workaround and not the correct way to address the problem.

from linux.

jgust avatar jgust commented on July 29, 2024

You are correct, this is by no means an official (or proper) solution. I'm sorry if you somehow got that impression. I'm sure the correct solution is being worked on as we speak and will be available in due time. In case anyone wants to get this working on 21.04 in the mean time, this is a solution that worked great for me, YMMV.

from linux.

LowryConor avatar LowryConor commented on July 29, 2024

FWIW the workaround above did not work for me on 21.04 either. Once I re-install zfs-utils, the 2.0.6 version of zfs-dkms is removed and gets replaced by 2.0.2

sudo apt install zfsutils-linux --no-remove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libnvpair3linux libuutil3linux libzfs4linux libzpool4linux zfs-zed
Suggested packages:
  nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following packages will be REMOVED:
  zfs-dkms
The following NEW packages will be installed:
  libnvpair3linux libuutil3linux libzfs4linux libzpool4linux zfs-zed zfsutils-linux
0 upgraded, 6 newly installed, 1 to remove and 1 not upgraded.
E: Packages need to be removed but remove is disabled.

So just using 5.13 kernel for the moment.

from linux.

 avatar commented on July 29, 2024

This is what I see as well, but I wasn't interested in breaking my system again to copy-paste the error messages, and I am also sticking with the 5.13 kernel.

from linux.

jgust avatar jgust commented on July 29, 2024

Fair enough, maybe I got lucky :-) Perhaps a bit more robust solution that I found is to add a ppa that provides the latest zfs packages:

sudo add-apt-repository ppa:jonathonf/zfs
sudo apt update
sudo apt install zfsutils-linux zfs-dkms

source

Of course, if you don't mind staying on 5.13 you probably shouldn't bother. But for me 5.15 supports my hardware much better than 5.13 and earlier so I'm really keen using it.

from linux.

cinimodev avatar cinimodev commented on July 29, 2024

Been following this thread for a couple days and having the same issue as @LowryConor. Both zfs-dkms and zfsutils-linux install version 2.02, which is only supported to 5.14. I'm hesitant to install any PPA's, etc. for a kludge fix until the next update comes. In exchange, my data drives now don't mount because zfs is broken until either an update comes for 5.15 or I decide to just run an older kernel.

from linux.

 avatar commented on July 29, 2024

Is there anyone actually looking at this? People's systems are broken and we are resorting to ugly hacks to fix this, yet there's been no acknowledgement from system76 that this is even an issue. It's gotten to the point where I'm like that old grandparent who doesn't want to update their Windows machine because they're paranoid it's going to break something--except in this case it will.

from linux.

cinimodev avatar cinimodev commented on July 29, 2024

It looks like OpenZFS version 2.0.7 is ready for kernel 5.15. But, I can't have a distro that will break my zfs pools. I agree with @anahata0108 that I have also been hesitant to update my system now due to specific settings I need to get my work done. I have been putting it off, but it seems like Pop isn't the distro for me anymore and will have to go back to something that wants to support zfs as a file system option. Sad day, but think its my only option now.

from linux.

rjpower4 avatar rjpower4 commented on July 29, 2024

Continuing with what @cinimodev mentioned, running zfs 2.0.6 with kernel 5.15 is unsupported, it would be great to get access to zfs 2.0.7 on 21.10

from linux.

jacobgkau avatar jacobgkau commented on July 29, 2024

Nothing I did on 21.04 would work. However, after upgrading to 21.10 OpenZFS installed correctly.

This is because the version of zfs-dkms being shipped by Ubuntu on 21.04 was too old for kernel 5.15, but the version being shipped on version 21.10 was new enough to work. We have backported the 21.10 version to 20.04 LTS for Pop!_OS (since we ship the same kernel on both releases), so both are currently working.

I would prefer to stay on the LTS kernel for my primary workstation to avoid update breakage.

5.15 is listed by the upstream kernel developers as the latest LTS kernel: https://www.kernel.org/category/releases.html (although we want to ship the latest mainline kernel possible anyway.)

I am closing this issue because we are now packaging ZFS and regression testing that it works for every kernel update. This should address any concerns that ZFS will break with Pop!_OS's more frequent kernel updates.

Continuing with what @cinimodev mentioned, running zfs 2.0.6 with kernel 5.15 is unsupported, it would be great to get access to zfs 2.0.7 on 21.10

If you know of any specific functionality that is not working, please let us know. We will add your case to our regression testing procedures and re-open this issue.

We do have a pull request open on the ZFS repo to package 2.1.2, although it appears to require backporting other dependencies not yet available on 21.10: pop-os/zfs-linux#3

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.