Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZFS & Kernel Questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 37

PostPosted: Sun Jan 06, 2019 7:38 pm    Post subject: ZFS & Kernel Questions Reply with quote

Hi,

I compiled a DIY kernel but I cant get sys-fs/zfs to install modules for it, what so ever.
I tried to re-compile zfs before and after creating kernel modules and I tried to chroot on a live-cd to re-compile zfs.
But still there is no zfs module in the new /lib/modules/*** folder.

FYI: When compiling sys-fs/zfs there is no error message at all.

zfs should be in my kernel modules, but it isnt ...
Code:
# ls /lib/modules/4.14.90-gentoo-asus-aura-970pro.10/extra/
spl


ATM I am using bliss kernel and it has zfs support ...
Code:
# ls /lib/modules/4.14.33-FC.01/extra/
avl  icp  nvpair  spl  unicode  zcommon  zfs


Here are the sources, versions, and the link to my kernel ...
Code:
# ls -l /usr/src/
lrwxrwxrwx  1 root root    21  6. Jan 06:28 linux -> linux-4.14.90-gentoo/
drwxr-xr-x  6 root root    11  3. Jan 22:55 linux-4.14.33-FC.01
drwxr-xr-x 26 root root    57  6. Jan 06:59 linux-4.14.90-gentoo
drwxr-xr-x  4 root root     6  6. Jan 06:55 spl-0.7.12
drwxr-xr-x  4 root root     6 12. Dez 21:23 zfs-0.7.12


Code:
# ls -l /usr/src/spl-0.7.12/
insgesamt 22
drwxr-xr-x 2 root root    5  6. Jan 06:55 4.14.90-gentoo-asus-aura-970pro.10
drwxr-xr-x 9 root root   13  6. Jan 06:55 include
-rw-r--r-- 1 root root   38  6. Jan 06:55 spl.release.in
-rw-r--r-- 1 root root 5084  6. Jan 06:55 spl_config.h.in


Code:
# ls -l /usr/src/zfs-0.7.12/
insgesamt 30
drwxr-xr-x 2 root root     5 12. Dez 21:23 4.14.33-FC.01
drwxr-xr-x 4 root root    12 12. Dez 21:23 include
-rw-r--r-- 1 root root    38 12. Dez 21:23 zfs.release.in
-rw-r--r-- 1 root root 16254 12. Dez 21:23 zfs_config.h.in

It doesn't matter what I try to do, the kernel version wont change.

I switched to dracut for flexibility and it complains about missing zfs module too.

Code:
# dracut --kver 4.14.90-gentoo-asus-aura-970pro.10
...
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: zfs ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut-install: Failed to find module 'zfs'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.Htt2hl/initramfs --kerneldir /lib/modules/4.14.90-gentoo-asus-aura-970pro.10/ -m ext4 nls_cp437 nls_iso8859-15 nls_utf8 vfat zfs


Here is the section dracut/initrd is complaining when I try to boot with my kernel ...

Code:

...
/init@185(main): udevsettle
/lib/dracut-lib.sh@534(udevsettle): '[' -z 220 ']'
/lib/dracut-lib.sh@536(udevsettle): '[' 220 -ge 143 ']'
/lib/dracut-lib.sh@537(udevsettle): udevadm settle --exit-if-exists=/lib/dracut/hooks/initqueue/work
/init@187(main): check_finished
/lib/dracut-lib.sh@444(check_finished): local f
/lib/dracut-lib.sh@445(check_finished): for f in $hookdir/initqueue/finished/*.sh
/lib/dracut-lib.sh@446(check_finished): '[' '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f18031874758501366368.sh' = '/lib/dracut/hooks/initqueue/finished/*.sh' ']'
/lib/dracut-lib.sh@447(check_finished): '[' -e '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f18031874758501366368.sh' ']'
/lib/dracut-lib.sh@447(check_finished): . '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f18031874758501366368.sh'
//lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f18031874758501366368.sh@1(source): '[' -e /dev/disk/by-uuid/18031874758501366368 ']'
/lib/dracut-lib.sh@445(check_finished): for f in $hookdir/initqueue/finished/*.sh
/lib/dracut-lib.sh@446(check_finished): '[' '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f7286975903305496029.sh' = '/lib/dracut/hooks/initqueue/finished/*.sh' ']'
/lib/dracut-lib.sh@447(check_finished): '[' -e '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f7286975903305496029.sh' ']'
/lib/dracut-lib.sh@447(check_finished): . '/lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f7286975903305496029.sh'
//lib/dracut/hooks/initqueue/finished/devexists-x2fdevx2fdiskx2fby-uuidx2f7286975903305496029.sh@1(source): '[' -e /dev/disk/by-uuid/7286975903305496029 ']'
/lib/dracut-lib.sh@445(check_finished): for f in $hookdir/initqueue/finished/*.sh
/lib/dracut-lib.sh@446(check_finished): '[' /lib/dracut/hooks/initqueue/finished/zfs.sh = '/lib/dracut/hooks/initqueue/finished/*.sh' ']'
/lib/dracut-lib.sh@447(check_finished): '[' -e /lib/dracut/hooks/initqueue/finished/zfs.sh ']'
/lib/dracut-lib.sh@447(check_finished): . /lib/dracut/hooks/initqueue/finished/zfs.sh
//lib/dracut/hooks/initqueue/finished/zfs.sh@1(source): '[' -e /dev/zfs ']'
/lib/dracut-lib.sh@447(check_finished): return 1
...
/lib/dracut-lib.sh@66(warn): echo 'dracut Warning: Could not boot.'
dracut Warning: Could not boot.
...


My grub.conf looks like this ...
Code:
menuentry "Gentoo - 4.14.90-asus-aura-970pro.10" {
   linux /@/kernels/4.14.90-gentoo-asus-aura-970pro.10/vmlinuz dozfs=force root=ZFS=rpool/ROOT/gentoo by=id elevator=noop rd.vconsole.font=latarcyrheb-sun16 rd.vconsole.keymap=de-latin1-nodeadkeys rd.locale.LANG=de_DE.UTF-8 logo.nologo triggers=zfs
   initrd /@/kernels/4.14.90-gentoo-asus-aura-970pro.10/initramfs
}


I have all dependencies to boot from my kernel except zfs module I think.
But since a few days this drives me nuts.

Can you pls help me.

rd.debug output when the system failed to boot with DIY kernel / initrd.
https://paste.pound-python.org/show/e7yweqf1dt3w98otkDdB/

.config of DIY kernel.
https://paste.pound-python.org/show/4XgPnsdwN9unOOR8rvgX/

dmesg output of bliss kernel, for comparing reasons.
https://paste.pound-python.org/show/IZvgwHcPTtSfYcOAZx3D/

If you need any more info please let me know.



Addition ...
I also tried to compile 4.19 but zfs-0.7.12 wont install at all and therefore I need a new version like zfs-0.8.0-rc2.
zfs-0.7.12 only works on kernel below 4.19 recording to ZOL on github.
Quote:
As of this release the spl is included in the zfs tarball and is no longer provided separately.

How can I install a bleeding edge kernel ?

Sorry, for the noobish questions, I am still a bloody beginner.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Mon Jan 07, 2019 7:10 am    Post subject: Reply with quote

Can you try to compile the ZFS support into the kernel (not as module) ?
Back to top
View user's profile Send private message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 37

PostPosted: Mon Jan 07, 2019 8:40 am    Post subject: Reply with quote

I have changed CONFIG_CRYPTO_DEFLATE=m to CONFIG_CRYPTO_DEFLATE=y and this changed CONFIG_ZLIB_* too.

Code:
# grep ZLIB /usr/src/linux/.config
CONFIG_SQUASHFS_ZLIB=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y


Here is the new .config file.

Then I did this ...
Code:
# make modules_install
# emerge -av spl zfs
# make install
# dracut --kver 4.14.90-gentoo-asus-aura-970pro.12


But dracut complained again ...

Quote:
dracut-install: Failed to find module 'zfs'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.kUwIEH/initramfs --kerneldir /lib/modules/4.14.90-gentoo-asus-aura-970pro.12/ -m ext4 nls_cp437 nls_iso8859-15 nls_utf8 vfat zfs


When looking for zfs in modules folder its still missing ...
Code:
# ls /lib/modules/4.14.90-gentoo-asus-aura-970pro.12/extra/
spl


Is there any thing else I can do ?
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 538

PostPosted: Mon Jan 07, 2019 11:45 am    Post subject: Reply with quote

taskman wrote:
I have changed CONFIG_CRYPTO_DEFLATE=m to CONFIG_CRYPTO_DEFLATE=y and this changed CONFIG_ZLIB_* too.

Code:
# emerge -av spl zfs


Does the above pull in zfs-kmod?
Back to top
View user's profile Send private message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 37

PostPosted: Mon Jan 07, 2019 5:01 pm    Post subject: Reply with quote

No it didn't.
I wasn't even aware of a source called sys-fs/zfs-kmod.
Thank you so much, this was missing indeed.
I emerged sys-fs/zfs-kmod and all works now.
No complains any more.


What about installing a new kernel Version >4.19 ?
How do I change default installation of spl and zfs to a new one ?
Code:

# equery list 'sys-fs/zfs*'
 * Searching for zfs* in sys-fs ...
[IP-] [  ] sys-fs/zfs-0.7.12:0
[IP-] [  ] sys-fs/zfs-kmod-0.7.12:0


# equery list 'sys-kernel/spl*'
 * Searching for spl* in sys-kernel ...
[IP-] [  ] sys-kernel/spl-0.7.12:0
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 538

PostPosted: Mon Jan 07, 2019 8:09 pm    Post subject: Reply with quote

Yw.

Rather than emerging all three when you change or upgrade your kernel you could/should emerge @module-rebuild. I wasn't sure when I asked earlier, and wasn't able to check.
I believe 0.7.12 supports up 4.19 kernels, what the current master supports and/or how it relates to the current 9999 builds I'm afraid I can't answer.
Back to top
View user's profile Send private message
taskman
n00b
n00b


Joined: 29 Nov 2018
Posts: 37

PostPosted: Mon Jan 07, 2019 9:01 pm    Post subject: Reply with quote

Thanks mate.

I will use 'emerge @module-rebuild' from now on.
In fact I had to use it already cause I needed to upgrade my nvidia modules.

Quote:
I believe 0.7.12 supports up 4.19 kernels

No, sadly it doesn't. I tried and mention it in my first post.

I will do a snapshot of my system and then I will try to install 9999.
Hope this will work.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Tue Jan 08, 2019 3:05 am    Post subject: Reply with quote

0.7.12 works here with 4.19.4.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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