Skip to content

Instantly share code, notes, and snippets.

@fishdust
Last active January 10, 2017 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fishdust/099f6413d1e294565ee180e96e0ab8df to your computer and use it in GitHub Desktop.
Save fishdust/099f6413d1e294565ee180e96e0ab8df to your computer and use it in GitHub Desktop.
Installing ZFS on Centos 7

Here are the only commands used to install ZFS on Centos 7

First install from CentOS-7-x86_64-Minimal-1611.iso

yum -y install epel-release
yum -y update
reboot

after reboot

yum localinstall --nogpgcheck http://download.zfsonlinux.org/epel/zfs-release.el7.noarch.rpm
# backup kept here: https://s3-us-west-2.amazonaws.com/fishdust/zfs-release.el7.noarch.rpm
yum -y install kernel-devel
yum -y install zfs
modprobe zfs

without running modprobe zfs, ZFS did not run.

After reboot, ZFS was not running either.

I followed the instructions here, specifically:

systemctl preset zfs-import-cache zfs-import-scan zfs-mount zfs-share zfs-zed zfs.target
reboot

after reboot:

systemctl enable zfs-import-scan

reboot again, and all works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment