- Install
zfs-releaseto attach ZFS repo for yum.
sudo yum install http://download.zfsonlinux.org/epel/zfs-release.el7_5.noarch.rpmBe sure to match the version of Centos.
- Choose between kABI and DKMS installation styles. kABI is preferable since it doesn't require to recompile. Edit
/etc/yum.repos.d/zfs.repotoenablerepositoryzfs-kmodanddisableothers. - Install ZFS with
sudo yum install zfs. - Load modules on startup
sudo sh -c 'echo zfs > /etc/modules-load.d/zfs.conf'. - Create pool with
sudo zpool create mypool raidz sdb sdc. Heremypoolis the name of the pool,raidztype of root vdev,sdbandsdcare device to add to pool.mypoolwill be mounted to/mypool. This can be configured with-mswitch to zpool. - Alternatively, you can mount pre-existing pools with
zpool import.