Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with ZFS Root #34

Closed
dantheperson opened this issue May 18, 2020 · 12 comments
Closed

Does not work with ZFS Root #34

dantheperson opened this issue May 18, 2020 · 12 comments

Comments

@dantheperson
Copy link

I've got ZFS root with ubuntu 20.04. The script indicates it has worked, and i can see the entries in /boot like they used to be, but the grub-update step never finds them.

@gothicVI
Copy link
Contributor

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

@dantheperson
Copy link
Author

dantheperson commented May 19, 2020

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

@dantheperson
Copy link
Author

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)

@dantheperson
Copy link
Author

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

@dantheperson
Copy link
Author

dantheperson commented May 20, 2020

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?

@pimlie
Copy link
Owner

pimlie commented Jun 13, 2020

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.

@dantheperson
Copy link
Author

dantheperson commented Jun 14, 2020 via email

@satmandu
Copy link

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

@dantheperson
Copy link
Author

dantheperson commented Jun 24, 2020

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

@satmandu
Copy link

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.

@satmandu
Copy link

dkms status
zfs, 0.8.4, 5.7.5-050705-generic, x86_64: installed

@dantheperson
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants