Install and Setup ZFS on Debian 10

Enabling Debian contrib Package Repository:

sudo apt-add-repository contrib
sudo apt update

Installing ZFS Dependencies:

sudo apt install linux-headers-$(uname -r) linux-image-amd64 spl kmod

Installing ZFS on Debian 10:

sudo apt install zfsutils-linux zfs-dkms zfs-zed
sudo modprobe zfs
sudo apt -f install

sudo nano /etc/modules-load.d/zfs.conf

Type in zfs in the /etc/modules-load.d/zfs.conf file as marked in the screenshot below.

sudo reboot

Creating ZFS Pools:

sudo lsblk
sudo zpool create -f pool1 /dev/sdX /dev/sdY
sudo zpool list

Creating ZFS Pool RAIDZ:

zpool create tank -f raidz2 sdX sdY sdZ ...
zpool status -v tank
  pool: tank
 state: ONLINE
 scrub: none requested

        NAME          STATE     READ WRITE CKSUM
        tank          ONLINE       0     0     0
          raidz2      ONLINE       0     0     0
            sdX       ONLINE       0     0     0
            sdY       ONLINE       0     0     0
            sdZ       ONLINE       0     0     0

errors: No known data errors

Removing ZFS Datasets:

sudo zfs list
sudo zfs destroy pool1

Removing ZFS Pools:

sudo zpool destroy pool1

In that case, you will have to remove the pool with the -f option as follows:

sudo zpool destroy -f pool1
sudo zpool list