ZFS commands
In this section, we will look at the commands for performing various tasks for ZFS on Proxmox.
How to do it…
Use the following command to create the
raidzZFS pool:# zpool create <pool_name> raidz -m <mountpoint> </dev/sdX> </dev/sdX> <…>The command to create a
zpoolnamedtestzfsin the/mnt/zfs1mount point with three drives looks like this:#zpool create testzfs raidz –m /mnt/zfs1/ /dev/vdf /dev/vdg /dev/vdhThe following screenshot shows the output of the
zpoollist to verify that our pool is created:
Use the following command to delete the ZFS pool:
# zpool destroy <pool_name>This action is irreversible. Once the pool is deleted, it is permanently removed.
Use the following command to list all the ZFS pools and storage space:
# zpool listUse the following command to see the status of all the drives for the ZFS pool:
#zpool statusThe preceding command is useful for checking if any drives are offline or approaching failure by checking...