CentOS/RHEL当前最新可以下载的版本:

EL6 Package: http://download.zfsonlinux.org/epel/zfs-release.el6.noarch.rpm

EL7.3 Package: http://download.zfsonlinux.org/epel/zfs-release.el7_3.noarch.rpm

EL7.4 Package: http://download.zfsonlinux.org/epel/zfs-release.el7_4.noarch.rpm

此文档以CentOS 7.4为基础,查看你的具体版本号

# cat /etc/centos-release

安装DKMS

OpenZFS默认会以DKMS方式安装,需要先准备好DKMS。

# yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
# yum install dkms

安装ZFS

# yum install http://download.zfsonlinux.org/epel/zfs-release.el7_4.noarch.rpm
# gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
# yum install kernel-devel zfs
# modprobe zfs

注意:安装完成后要启动这些服务,否则重启后将不能自动挂载pool

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

参考资料

https://github.com/zfsonlinux/zfs/wiki/RHEL-and-CentOS

[ 编辑 | 历史 ]
最近由“jilili”在“2018-03-06 03:42:46”修改