ZFS v Debian 9

ZFS v Debian 9

sed -i ‚s/main/main contrib non-free/g‘ /etc/apt/sources.list
apt-get update
apt -y install linux-headers-$(uname -r)
ln -s /bin/rm /usr/bin/rm
apt-get -y install zfs-dkms

/sbin/modprobe zfs
systemctl restart zfs-import-cache
systemctl restart zfs-import-scan
systemctl restart zfs-mount
systemctl restart zfs-share

truncate -s 100M /root/z
zpool create tank /root/z
zfs set compression=on tank
zpool status

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

vi /etc/modprobe.d/zfs.conf:
options zfs zfs_autoimport_disable=0

kdyžtak
zfs set mountpoint=none tank

shutdown -r now