Contents
How do you unmount a ZFS pool?
You can unmount ZFS file systems by using the zfs unmount subcommand. The unmount command can take either the mount point or the file system name as an argument. The unmount command fails if the file system is busy. To forcibly unmount a file system, you can use the -f option.
How do I delete a ZFS file system?
To destroy a ZFS file system, use the zfs destroy command. By default, all of the snapshots for the dataset will be destroyed. The destroyed file system is automatically unmounted and unshared. For more information about automatically managed mounts or automatically managed shares, see Automatic Mount Points.
How can I override the default mount point in ZFS?
You can override the default mount point by using the zfs set command to set the mountpoint property to a specific path. ZFS automatically creates the specified mount point, if needed, and automatically mounts the associated file system when the zfs mount -a command is invoked, without requiring you to edit the /etc/vfstab file.
How to determine the mount point of a file system?
You can determine specific mount-point behavior for a file system as described in this section. You can also set the default mount point for a pool’s dataset at creation time by using zpool create ‘s -m option. For more information about creating pools, see Creating a ZFS Storage Pool.
How are ZFS file systems mounted at boot time?
All ZFS file systems are mounted by ZFS at boot time by using the Service Management Facility’s (SMF) svc://system/filesystem/local service. File systems are mounted under /path, where path is the name of the file system. You can override the default mount point by using the zfs set command to set the mountpoint property to a specific path.
What to do if ZFS is unable to unmount a file?
If ZFS is unable to unmount a file system due to it being active, an error is reported, and a forced manual unmount is necessary. You can manage ZFS file systems with legacy tools by setting the mountpoint property to legacy. Legacy file systems must be managed through the mount and umount commands and the /etc/vfstab file.