Hands-On Linux for Architects
上QQ阅读APP看书,第一时间看更新

Installing ZFS

Let's start by installing ZFS; there are some dependencies, such as dynamic kernel modules (DKMS), that live in the EPEL repository.

Note that most of the commands that run here are assumed to be running as root; the commands can be run as the non-root account by prefacing sudo before each.

To install the required components, we can use the following commands:

yum install -y epel-release
yum install -y http://download.zfsonlinux.org/epel/zfs-release.el7_5.noarch.rpm

Next, we will use the following command:

yum install -y zfs

The following commands are used to enable the ZFS components:

systemctl enable zfs.target
systemctl enable --now zfs-import-scan.service