Amazon Linux 2023 ami-0c4c4bd6cf0c5fe52

[root@ip-172-31-28-244 ec2-user]# cat /etc/os-release

NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/ "
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023 "
SUPPORT_END="2028-03-01"

[root@ip-172-31-28-244 ec2-user]# uname -a

Linux ip-172-31-28-244.eu-central-1.compute.internal 6.1.41-63.114.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug  1 20:47:25 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Add repository

dnf update -y
vi /etc/yum.repos.d/zfs.repo
[zfs]
name=ZFS on Linux for Fedora 36
baseurl=http://download.zfsonlinux.org/fedora/36/$basearch/
enabled=1
metadata_expire=7d
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-fedora-36

Install zfs package

dnf install -y zfs
/sbin/modprobe zfs

Amazon Linux 2018 ami-0b5ded3495f46c449

[root@ip-172-31-18-142 ec2-user]# cat /etc/os-release

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/ "

[root@ip-172-31-18-142 ec2-user]# uname -a

Linux ip-172-31-18-142 4.14.305-155.531.amzn1.x86_64 #1 SMP Tue Feb 14 10:36:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Add repository

yum update

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=0
sslverify=true

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

Reboot.

Install zfs: yum install zfs

/sbin/modprobe zfs

RH9

dnf update
dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
dnf config-manager --disable zfs
dnf config-manager --enable zfs-kmod
dnf install zfs
/sbin/modprobe zfs

RH8 

[root@ip-172-31-30-1 ec2-user]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)

dnf update
dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
dnf config-manager --disable zfs
dnf config-manager --enable zfs-kmod
dnf install zfs
reboot
/sbin/modprobe zfs

RH7

[root@ip-172-31-22-232 ec2-user]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)

yum update
yum install https://zfsonlinux.org/epel/zfs-release-2-3.el7.noarch.rpm
yum-config-manager --disable zfs
yum-config-manager --enable zfs-kmod
vi /etc/yum.repos.d/zfs.repo
...change  gpgcheck=1 to gpgcheck=0
yum install zfs
/sbin/modprobe zfs

Centos7

[root@ip-172-31-26-84 centos]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

yum update
yum install https://zfsonlinux.org/epel/zfs-release-2-3.el7.noarch.rpm
yum-config-manager --disable zfs
yum-config-manager --enable zfs-kmod
yum install zfs
reboot
/sbin/modprobe zfs

Centos 8

[root@ip-172-31-28-124 cloud-user]# cat /etc/redhat-release
CentOS Stream release 8

[root@ip-172-31-28-124 cloud-user]# uname -a
Linux ip-172-31-28-124.eu-central-1.compute.internal 4.18.0-500.el8.x86_64 #1 SMP Wed Jun 28 00:07:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

dnf update
dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
dnf config-manager --disable zfs
dnf config-manager --enable zfs-kmod
dnf install zfs
reboot
/sbin/modprobe zfs

https://github.com/openzfs/zfs/issues/14847

OL7 ami-09652893c513d8fa8

[root@ip-172-31-27-243 ec2-user]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/ "
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9

[root@ip-172-31-27-243 ec2-user]# uname -a
Linux ip-172-31-27-243.eu-central-1.compute.internal 3.10.0-1160.95.1.0.1.el7.x86_64 #1 SMP Tue Jul 18 05:26:31 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux

yum update
yum install https://zfsonlinux.org/epel/zfs-release-2-3.el7.noarch.rpm
yum-config-manager --disable zfs
yum-config-manager --enable zfs-kmod
vi /etc/yum.repos.d/zfs.repo
...change  gpgcheck=1 to gpgcheck=0
yum install zfs
shutdown -r now
/sbin/modprobe zfs

Ol8 ami-0248b8b5807904530

[root@ip-172-31-31-167 ec2-user]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/ "
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8

[root@ip-172-31-31-167 ec2-user]# uname -a
Linux ip-172-31-31-167.eu-central-1.compute.internal 5.15.0-101.103.2.1.el8uek.x86_64 #2 SMP Mon May 1 20:11:30 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux

yum install -y yum-utils
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum config-manager --enable epel
yum install -y dkms
rpm -Uvh http://download.zfsonlinux.org/epel/zfs-release.el8_2.noarch.rpm
yum install -y zfs

[root@ip-172-31-31-167 ec2-user]# /sbin/modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.0-103.114.4.el8uek.x86_64

Ol9 ami-09829909ee4ff0f3b

[root@ip-172-31-22-25 ec2-user]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="9.2"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Oracle Linux Server 9.2"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:9:2:server"
HOME_URL="https://linux.oracle.com/ "
BUG_REPORT_URL="https://github.com/oracle/oracle-linux "
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"
ORACLE_BUGZILLA_PRODUCT_VERSION=9.2
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=9.2

[root@ip-172-31-22-25 ec2-user]# uname -a
Linux ip-172-31-22-25.eu-central-1.compute.internal 5.15.0-101.103.2.1.el9uek.x86_64 #2 SMP Tue May 2 01:10:45 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux

[root@ip-172-31-31-56 ec2-user]# cat /etc/yum.repos.d/zfs.repo
[zfs]
name=ZFS on Linux for Fedora 36
baseurl=http://download.zfsonlinux.org/fedora/36/$basearch/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-fedora-36

yum install epel-release
dnf install -y zfs
/sbin/modprobe zfs