Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Lost ZFS (missing zfs.ko) after upgrading kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Filur
n00b
n00b


Joined: 13 Jun 2014
Posts: 2

PostPosted: Fri Jun 13, 2014 12:42 pm    Post subject: [SOLVED] Lost ZFS (missing zfs.ko) after upgrading kernel Reply with quote

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
View user's profile Send private message
zsitvaij
n00b
n00b


Joined: 11 Jan 2006
Posts: 74

PostPosted: Fri Jun 13, 2014 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Filur
n00b
n00b


Joined: 13 Jun 2014
Posts: 2

PostPosted: Fri Jun 13, 2014 5:29 pm    Post subject: Reply with quote

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.

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum