View previous topic :: View next topic |
Author |
Message |
Filur n00b
Joined: 13 Jun 2014 Posts: 2
|
Posted: Fri Jun 13, 2014 12:42 pm Post subject: [SOLVED] Lost ZFS (missing zfs.ko) after upgrading kernel |
|
|
I’ve just reinstalled my server to get the in kernel version of ZFS, and have some problem with ZFS.
First when I installed the new system I got an error that I was missing some zfs files, forcing me too emerge zfs before running genkernel all for the first time. Once the system was up I could use zfs with no extra settings or install.
During initial install I did according to http://wiki.gentoo.org/wiki/ZFS:
Code: | root # echo "sys-kernel/spl ~amd64" >> /etc/portage/package.accept_keywords
root # echo "sys-fs/zfs-kmod ~amd64" >> /etc/portage/package.accept_keywords
root # echo "sys-fs/zfs ~amd64" >> /etc/portage/package.accept_keywords
root # emerge -av zfs |
My zfs disks are encrypted with cryptsetup and not visible until they have been unlooked.
The kernel used during initial setup was, 3.12.20, after upgrading to 3.12.21-gentoo-r1 I lost zfs support.
When trying to run I get:
Code: | # zpool status
Failed to load ZFS module stack.
Load the module manually by running 'insmod <location>/zfs.ko' as root.
# find / -name zfs.ko
/lib/modules/3.12.20-gentoo/extra/zfs/zfs.ko |
I've tried to reinstall zfs and run genkernel again but that doesn't help.
I also tried doing the "Installing into the kernel directory" in http://wiki.gentoo.org/wiki/ZFS as well but still no zfs.ko
Anyone has a clue what I did wrong and how to get it working again?
Last edited by Filur on Fri Jun 13, 2014 5:29 pm; edited 1 time in total |
|
Back to top |
|
|
zsitvaij n00b
Joined: 11 Jan 2006 Posts: 74
|
Posted: Fri Jun 13, 2014 4:00 pm Post subject: |
|
|
Did you reinstall only sys-fs/zfs, or did you reinstall sys-fs/zfs-kmod as well? It's the second one that builds the module, the first is userspace tools.
There's the @module-rebuild set, it keeps track of what kernel modules come from which packages, and lets you rebuild them automatically. Just 'emerge @module-rebuild' whenever you do a kernel upgrade. |
|
Back to top |
|
|
Filur n00b
Joined: 13 Jun 2014 Posts: 2
|
Posted: Fri Jun 13, 2014 5:29 pm Post subject: |
|
|
I only reinstalled sys-fs/zfs.
The 'emerge @module-rebuild' fixed my system and zfs is now working again.
Thanks for the help, and quick reply.
|
|
Back to top |
|
|
|