I am trying to install ZFS on my amazon linux ami. Since the package is by default not available in their repository, I downloaded it from http://zfsonlinux.org/ . I also managed to install spl and zfs using their source code. The kernel package installed are as follows :

# sudo rpm -qa |grep kernel

After install spl and zfs (both version 0.7.5) without any error i tried to use modprobe to load them into kernel. But i got an error.

# sudo  modprobe zfs
modprobe: FATAL: Module zfs not found.

Also, No logs are generated in dmesg or any other logs. Any kind of help would be greatly appreciated. Thanking you.


try this.on generic linux,after installing packages if you type "zfs list" it says zfs modules not loaded. "/sbin/modprobe zfs" verify with "dmesg|grep" oder "lsmod|grep zfs"

  • "/sbin/modprobe zfs" gives following error modprobe: FATAL: Module zfs not found. Also lsmod|grep zfs returns empty response. And "dmesg|grep zfs" is empty but "dmesg|grep zpool" gives [ 6.055268] zswap: default zpool zbud not available
    – Trik232
    Dec 22 '17 at 10:19
  • try reboot.this is how I do on linux.I also try reinstalling "zfs" package.sometimes it does weird things.today I installed 10 times.I take same steps but get different results with 3 cases.I have no idea what s going.but it works somehow. with dmesg and lsmod zfs is case sensitive btw.
    – hakkican
    Dec 22 '17 at 12:49
  • No. Reboot did not work as well. I reinstalled it once but did not work. Will try that again.
    – Trik232
    Dec 26 '17 at 6:52
  • can you write down how you install zfs? step by step.definitely you couldnt manage to install.did you crosscheck if amazon linux ami is supported?
    – hakkican
    Dec 27 '17 at 9:47

This is how I managed to install zfs. Firstly a clean start to the installation process on a new server. Then i noticed make install does not work properly with SPL and ZFS. So manually copy the lib directory to desired location.


Install the zfsonlinux yum repository in /etc/yum.repos.d/zfsonlinux.repo:

name=ZFS on Linux repo DKMS

Install the latest kernel and kernel-devel: yum install kernel kernel-devel


Install zfs: yum install zfs

Make sure the module you just built is loaded: modprobe zfs


Old question, but I just went through it on a fresh Amazon Linux AMI launch:

yum update -y
sudo rpm -qa |grep kernel
uname -a
yum install -y kernel-headers-4.14.214
yum install -y kernel-devel-4.14.214
yum repolist enabled
yum install -y zlib-devel libuuid-devel
amazon-linux-extras install epel
yum install -y libblkid-devel
yum install -y libcrypto-devel
yum install -y crypto-devel
yum install -y openssl-devel
wget https://github.com/openzfs/zfs/releases/download/zfs-2.0.2/zfs-2.0.2.tar.gz
tar xzvf zfs-2.0.2.tar.gz
cd zfs-2.0.2/
make -j4
make install
modprobe zfs
zpool list
zpool create test sdb
zpool status test

It's gotten really easy!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.