# ZFS How to setup zfs on 64 bit arm boards. *Note: this is wholly untested and likely to be broken on 32 bit arm boards* ## Initial Install / Setup ``` bash apt-add-repository universe apt install zfs-dkms spl-dkms zfsutils-linux cat > /etc/modprobe.d/zfs.conf <> /etc/fstab echo /dev/zvol/tank/swap/swap.2 none swap defaults 0 0 >> /etc/fstab swapon -af nano -w /etc/fstab # Add above swap and remove exiting ones nano -w /etc/default/armbian-zram-config # Disabe if NOT using /var/log in RAM ``` ## Regular scrubs and integrity checks ``` bash crontab -e 22 0 14 * * /sbin/zpool scrub tank ``` ## Bulk storage and Samba filesystem shares ``` bash # Samba toolchain apt install samba tdb-tools # Samba user setup useradd -g users -s /usr/sbin/nologin [username] passwd [username] smbpasswd -a [username] nano -w /etc/samba/smb.conf workgroup = non-default comment out all share definitions systemctl restart smbd # Bulk storage for all the things zfs create -o sharesmb=on tank/downloads zfs create -o sharesmb=on tank/scratch cat /var/lib/samba/usershares/* ```