1

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
kernel-devel-4.9.62-21.56.amzn1.x86_64 
kernel-4.9.62-21.56.amzn1.x86_64 
kernel-tools-4.9.62-21.56.amzn1.x86_64 
kernel-headers-4.9.62-21.56.amzn1.x86_64 

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.

0

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
0

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.

0

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

[zfsonlinux]
name=ZFS on Linux repo DKMS
baseurl=http://download.zfsonlinux.org/epel/6/$basearch/
enabled=1
failovermethod=priority
fastestmirror_enabled=0
gpgcheck=1
sslverify=true

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

Reboot.

Install zfs: yum install zfs

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

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.