Code Monkey home page Code Monkey logo

Comments (12)

pimlie avatar pimlie commented on May 20, 2024 1

How did you install zfs, ie do you have zfs-dkms installed? For me the zfs modules are compiled & installed through dkms when I install a new kernel.

from ubuntu-mainline-kernel.sh.

gothicVI avatar gothicVI commented on May 20, 2024

It could be helpful if you showed some output of the script, grub, and the content of /boot.

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

yeah sorry.
So i ran an uninstall and reinstall, and i do see it in the install log.
But on reboot at the grub menu under 'advanced options' i get just 5.4.0-21 & 5.4.0-18

mainline-kernel-install.log

ls -l /boot
total 276377
-rw-r--r-- 1 root root   237718 Apr 23 02:08 config-5.4.0-28-generic
-rw-r--r-- 1 root root   237718 Apr 30 01:34 config-5.4.0-29-generic
-rw-r--r-- 1 root root   241511 May 15 01:20 config-5.6.13-050613-generic
drwxr-xr-x 2 root root        5 May 20 11:00 grub
lrwxrwxrwx 1 root root       32 May 20 10:57 initrd.img -> initrd.img-5.6.13-050613-generic
-rw-r--r-- 1 root root 81979449 May  1 12:50 initrd.img-5.4.0-28-generic
-rw-r--r-- 1 root root 81978729 May  7 06:05 initrd.img-5.4.0-29-generic
-rw-r--r-- 1 root root 82611383 May 20 10:57 initrd.img-5.6.13-050613-generic
lrwxrwxrwx 1 root root       27 May 20 10:57 initrd.img.old -> initrd.img-5.4.0-29-generic
-rw------- 1 root root  4736015 Apr 23 02:08 System.map-5.4.0-28-generic
-rw------- 1 root root  4736015 Apr 30 01:34 System.map-5.4.0-29-generic
-rw------- 1 root root  5375638 May 15 01:20 System.map-5.6.13-050613-generic
lrwxrwxrwx 1 root root       29 May 20 10:57 vmlinuz -> vmlinuz-5.6.13-050613-generic
-rw------- 1 root root 11657976 Apr 23 02:43 vmlinuz-5.4.0-28-generic
-rw------- 1 root root 11657976 Apr 30 01:54 vmlinuz-5.4.0-29-generic
-rw------- 1 root root 11976992 May 15 01:20 vmlinuz-5.6.13-050613-generic
lrwxrwxrwx 1 root root       24 May 20 10:57 vmlinuz.old -> vmlinuz-5.4.0-29-generic

this doesn't correspond... maybe i have bigger problems. This was a fresh 20.04 ubuntu install

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024
daniel@workski:/$ mount | grep "rpool/ROOT/ubuntu_1kdm8t"
rpool/ROOT/ubuntu_1kdm8t on / type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/mail on /var/mail type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/srv on /srv type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/lib on /var/lib type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/usr/local on /usr/local type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/log on /var/log type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/games on /var/games type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/www on /var/www type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/spool on /var/spool type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/snap on /var/snap type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/lib/apt on /var/lib/apt type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/lib/AccountServices on /var/lib/AccountServices type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/lib/dpkg on /var/lib/dpkg type zfs (rw,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_1kdm8t/var/lib/NetworkManager on /var/lib/NetworkManager type zfs (rw,relatime,xattr,posixacl)

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

OK, seems my bpool was not mounted to /boot for some reason. system was updating /boot which was now a plain directory on rpool, but at boot grub was still reading from bpool

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

I guess as a 'mainline' kernel, this doesn't have the ZFS modules to load a root ZFS filesystem anyway?
On boot i get dumped to an initrd commandline that asks me to load the ZFS kernel modules.

Maybe yet another caveat in the README would be in order?

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

from ubuntu-mainline-kernel.sh.

satmandu avatar satmandu commented on May 20, 2024

You need zfs-dkms installed if you install the mainline kernels, as those don't have zfs modules compiled in.

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

I've installed zfs-dkms and then 5.7.1 still no dice. Dumped to the initramfs prompt and nothing in /lib/modules//kernel/zfs+

daniel@workski:/usr/lib/modules$ find -name zfs*
./5.4.0-18-generic/kernel/zfs
./5.4.0-18-generic/kernel/zfs/zfs.ko
./5.4.0-37-generic/kernel/zfs
./5.4.0-37-generic/kernel/zfs/zfs.ko
./5.4.0-33-generic/updates/dkms/zfs.ko
./5.4.0-33-generic/kernel/zfs
./5.4.0-33-generic/kernel/zfs/zfs.ko
daniel@workski:/usr/lib/modules$ ls -l
total 259
drwxr-xr-x 5 root root 19 Mar 24 20:40 5.4.0-18-generic
drwxr-xr-x 2 root root 12 May 30 06:54 5.4.0-21-generic
drwxr-xr-x 2 root root 12 Apr 27 15:07 5.4.0-24-generic
drwxr-xr-x 2 root root 12 May  3 19:49 5.4.0-25-generic
drwxr-xr-x 2 root root 12 May  8 09:27 5.4.0-26-generic
drwxr-xr-x 2 root root 12 May 21 09:08 5.4.0-28-generic
drwxr-xr-x 2 root root 12 May 30 06:54 5.4.0-29-generic
drwxr-xr-x 2 root root 12 Jun 12 06:14 5.4.0-31-generic
drwxr-xr-x 6 root root 20 Jun 24 15:04 5.4.0-33-generic
drwxr-xr-x 5 root root 19 Jun 11 06:16 5.4.0-37-generic
drwxr-xr-x 5 root root 19 Jun 24 15:12 5.7.1-050701-generic

from ubuntu-mainline-kernel.sh.

satmandu avatar satmandu commented on May 20, 2024

Note that you need zfs-dkms 0.8.4 to support kernel 5.7.x , which is available most easily by updating to ubuntu groovy.

from ubuntu-mainline-kernel.sh.

satmandu avatar satmandu commented on May 20, 2024
dkms status
zfs, 0.8.4, 5.7.5-050705-generic, x86_64: installed

from ubuntu-mainline-kernel.sh.

dantheperson avatar dantheperson commented on May 20, 2024

Thank you very much @satmandu i tried again with 5.6.17 and now running with ZFS root via zfs-dkms

from ubuntu-mainline-kernel.sh.

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.