kernel-tools
kernel-tools copied to clipboard
Kernel with zfs module
Hi.
Since Ubuntu 16.04 comes with native zfs support, it will be nice to see kernel with zfs module enabled.
Hi @y8
You can install zfs on x86_64 4.5.7 std #2 latest
, can you switch your bootscript and follow the commands below.
EDITED
$ apt-get update
$ apt-get install -y libssl-dev
$ apt-get install -y zfsutils-linux # will fail on dkms
$ zcat /proc/config.gz > /boot/config-4.5.7
$ cd /tmp; wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.5.7.tar.xz && tar xf linux-4.5.7.tar.xz
$ cp -r /tmp/linux-4.5.7 /lib/modules/4.5.7-std-2/build && cd /lib/modules/4.5.7-std-2/build/
$ cp /boot/config-4.5.7 .config
$ make oldconfig
$ make prepare scripts
$ apt-get remove -y zfsutils-linux
$ apt-get install -y zfsutils-linux
$ cd /lib/modules/4.5.7-std-2/build && make -j4
$ dkms --verbose install spl/0.6.5.6
$ dkms --verbose install zfs/0.6.5.6
$ dkms status
spl, 0.6.5.6, 4.5.7-std-2, x86_64: installed
zfs, 0.6.5.6, 4.5.7-std-2, x86_64: installed
$ modprobe zfs
$ zpool list
no pools available
Hi @QuentinPerez,
Just tired.
root@zfs-test:~# zpool list
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
root@zfs-test:~# zfs list
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
root@zfs-test:~# /sbin/modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.5.7-std-2
root@zfs-test:~# uname -a
Linux zfs-test 4.5.7-std-2 #1 SMP Fri Jul 1 11:00:36 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@zfs-test:~# dkms status
spl, 0.6.5.6: added
zfs, 0.6.5.6: added
Just in case I've tried to reboot the server, but nothing changed.
@y8 . Maybe this works https://gist.github.com/moul/18e8ec495728e9db3c1e253719bd0d49 from this thread https://github.com/scaleway/kernel-tools/issues/257
Hi @QuentinPerez,
Yes, with updated instructions I managed to get working zfs+docker installation. Pools survived the reboot, and DSSD can be used as L2ARC cache, as zfs didn't complained about empty block device after archive/start sequence.
But installation takes about 1.5 hours on C2L, so anyway it will be much better to see this in stock bootscript.
Hi @QuentinPerez, any update on when zfs will be available out of the box ?
Hi @tlvenn, Unfortunately, I think that zfs module will be not available out of the box, because it depends of severals dependencies
Hello I got a VPS in scale way only to run ubuntu 16 with LXD and Oh surprise, it doesn't work ? What's going on ?
modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.5.7-std-3
It is native to ubuntu 16 with zfs.ko already compiled. why is it complicated to keep it as kernel module ?
Thanks
seems like the linux kernel 4.5.7 headers are not included, but they are needed in order to compile the new modules
@niwinz the readme of this repo explains how to get them
Anyone have a docker image that has the right kernel? I'm looking to create a scale way image.
I have successfully installed ZFS C2M with 4.4.94-mainline-rev1 kernel
First: apt-get install build-essential libssl-dev
Then, run the script from the article https://github.com/scaleway/kernel-tools#how-to-build-a-custom-kernel-module
Afrter that:
export KDIR=/lib/modules/$(uname -r)/build/
apt-get install zfsutils-linux -y
help me guys .. i have a problem in zfs in parrot os , its show me this error message :
● zfs-mount.service - Mount ZFS filesystems Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-07-17 00:29:35 EDT; 17ms ago Docs: man:zfs(8) Process: 28738 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE) Main PID: 28738 (code=exited, status=1/FAILURE)
Jul 17 00:29:35 parrot systemd[1]: Starting Mount ZFS filesystems... Jul 17 00:29:35 parrot zfs[28738]: The ZFS modules are not loaded. Jul 17 00:29:35 parrot zfs[28738]: Try running '/sbin/modprobe zfs' as root to load them. Jul 17 00:29:35 parrot systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE Jul 17 00:29:35 parrot systemd[1]: zfs-mount.service: Failed with result 'exit-code'. Jul 17 00:29:35 parrot systemd[1]: Failed to start Mount ZFS filesystems. dpkg: error processing package zfsutils-linux (--configure): installed zfsutils-linux package post-installation script subprocess returned error exit status 1 Setting up zfs-dkms (0.7.12-2+deb10u1) ... Removing old zfs-0.7.12 DKMS files...
Deleting module version: 0.7.12 completely from the DKMS tree.
Done.
Loading new zfs-0.7.12 DKMS files...
Building for 4.19.37-parrot1-amd64
Building initial module for 4.19.37-parrot1-amd64
configure: error: in /var/lib/dkms/zfs/0.7.12/build': configure: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD! See
config.log' for more details
Error! Bad return status for module build on kernel: 4.19.37-parrot1-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.7.12/build/make.log for more information.
dpkg: error processing package zfs-dkms (--configure):
installed zfs-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of zfs-initramfs:
zfs-initramfs depends on zfs-modules | zfs-dkms; however:
Package zfs-modules is not installed.
Package zfs-dkms which provides zfs-modules is not configured yet.
Package zfs-dkms is not configured yet.
zfs-initramfs depends on zfsutils-linux (>= 0.7.12-2+deb10u1); however:
Package zfsutils-linux is not configured yet.
dpkg: error processing package zfs-initramfs (--configure): dependency problems - leaving unconfigured Setting up libssl-dev:amd64 (1.1.1c-1) ... dpkg: dependency problems prevent configuration of zfs-zed: zfs-zed depends on zfs-modules | zfs-dkms; however: Package zfs-modules is not installed. Package zfs-dkms which provides zfs-modules is not configured yet. Package zfs-dkms is not configured yet. zfs-zed depends on zfsutils-linux (>= 0.7.12-2+deb10u1); however: Package zfsutils-linux is not configured yet.
dpkg: error processing package zfs-zed (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: zfsutils-linux zfs-dkms zfs-initramfs zfs-zed Configuring sandbox profiles.... Sandbox profiles updated! Scanning application launchers Updating active launchers Done E: Sub-process /usr/bin/dpkg returned an error code (1)