How can i unmount the ZFS dataset and change its mount point?
by postcd from LinuxQuestions.org on (#5F9MJ)
If you know, please kindly respond. Thank you in advance.
EDIT: possibly it can be for example like this:
UNMOUNT (not do this if you need to change mount point):
End all tasks using the pool (not sure if needed), then "ps aux|grep /mountpoint" and if some processes are hanging consider killing on your own risk: "kill -9 pidhere"
sudo zpool export poolname (parameter -f to force the action may lead to corruption)
CHANGE MOUNTPOINT:
sudo mkdir /newmnt
sudo zfs set mountpoint=/newmnt poolname/datasetname
maybe the pool have to be mounted and no process using the dataset (ps aux|grep /mountpoint)


EDIT: possibly it can be for example like this:
UNMOUNT (not do this if you need to change mount point):
End all tasks using the pool (not sure if needed), then "ps aux|grep /mountpoint" and if some processes are hanging consider killing on your own risk: "kill -9 pidhere"
sudo zpool export poolname (parameter -f to force the action may lead to corruption)
CHANGE MOUNTPOINT:
sudo mkdir /newmnt
sudo zfs set mountpoint=/newmnt poolname/datasetname
maybe the pool have to be mounted and no process using the dataset (ps aux|grep /mountpoint)