Skip to content

Instantly share code, notes, and snippets.

@krewenki
Created October 18, 2021 12:55
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 krewenki/45dee1b7694bfbc38772f5e805e8def6 to your computer and use it in GitHub Desktop.
Save krewenki/45dee1b7694bfbc38772f5e805e8def6 to your computer and use it in GitHub Desktop.
Install ZFS 2.0.2 on Amazon Linux 2
# taken from https://unix.stackexchange.com/questions/412442/zfs-on-amazon-linux-ami
yum update -y
sudo rpm -qa |grep kernel
uname -a
yum install -y kernel-headers-4.14.248
yum install -y kernel-devel-4.14.248
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/
./configure
make -j4
make install
modprobe zfs
lsmod
zpool list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment