Article 5F9MJ How can i unmount the ZFS dataset and change its mount point?

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)latest?d=yIl2AUoC8zA latest?i=gSBV-htPNzI:D2CyofRUpcs:F7zBnMy latest?i=gSBV-htPNzI:D2CyofRUpcs:V_sGLiP latest?d=qj6IDK7rITs latest?i=gSBV-htPNzI:D2CyofRUpcs:gIN9vFwgSBV-htPNzI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments