I want to set up a nextcloud server on an Ubunutu VM and use a zpool on the node for the nextcloud data storage. I have created the zpool on the node and added it as storage for the VM but how do I mount it from the VM?
# <file system> <mount point> <type> <options> <dump> <pass>
# partition the disk
fdisk /dev/sdb
# format it
mkfs.ext4 /dev/sdb1
# record the UUID, you'll get something like this...
blkid | grep sdb1
/dev/sdb1: UUID="6f86ee0b-0fa1-4467-93ca-c94a9fdc65c7" TYPE="ext4"
# create the directory you want to mount it
mkdir /foo_bar
# edit fstab, and place your settings, again the format is the following separated by spacing
# <file system> <mount point> <type> <options> <dump> <pass>
UUID="6f86ee0b-0fa1-4467-93ca-c94a9fdc65c7" /foo_bar ext4 default 0 0
# force it to mount
mount -a
# see if it mounted
mount