- Install
zfs-release
to attach ZFS repo for yum.
sudo yum install http://download.zfsonlinux.org/epel/zfs-release.el7_5.noarch.rpm
Be 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.repo
toenable
repositoryzfs-kmod
anddisable
others. - 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
. Heremypool
is the name of the pool,raidz
type of root vdev,sdb
andsdc
are device to add to pool.mypool
will be mounted to/mypool
. This can be configured with-m
switch to zpool. - Alternatively, you can mount pre-existing pools with
zpool import
.