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
raidz
ZFS pool:# zpool create <pool_name> raidz -m <mountpoint> </dev/sdX> </dev/sdX> <…>
The command to create a
zpool
namedtestzfs
in the/mnt/zfs1
mount point with three drives looks like this:#zpool create testzfs raidz –m /mnt/zfs1/ /dev/vdf /dev/vdg /dev/vdh
The following screenshot shows the output of the
zpool
list 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 list
- Use the following command to see the status of all the drives for the ZFS pool:
#zpool status
The preceding command is useful for checking if any drives are offline or approaching failure...