Unmounting ZFS File Systems
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.
In the following example, a file system is unmounted by its file system name:
$ zfs unmount users/home/mork
In the following example, the file system is unmounted by its mount point:
$ zfs unmount /users/home/mork
The unmount
command fails if the file system is busy. To forcibly unmount a file system, you can use the -f
option. Be cautious when forcibly unmounting a file system if its contents are actively being used. Unpredictable application behavior can result.
$ zfs unmount tank/home/glori cannot unmount '/tank/home/glori': Device busy $ zfs unmount -f tank/home/glori
To provide for backward compatibility, the legacy umount
command can be used to unmount ZFS file systems. For example:
$ umount /tank/home/glori
For more information about the zfs umount
command, see the
zfs
(8) man page.