Solved Novice zfs blunders

I'm very much a novice when it comes to zfs, but try out things from tiime to tiime and often get stuck.

My latest blunder was to create a pool which had an existing mountpoint.

I can't delete (destroy) it because the mountpoint is busy. How can I get rid of it?
 
zfs mount | less .... zfs umount ... zpool export -f ... reboot


Import with altroot zpool import -f -R /MYALTROOT MYZPOOL
All efective mountpoints will be relative to /MYALTROO, now , zfs list
Change mountpoints in order to have no overmounts.
 
Or do fstat -f /tmp and kill all the processes using it.

This of course is not a ZFS problem. This is not just a novice ZFS blunder. Mounting any other fs on top of /tmp would have also produced the same result.

This is why we have /mnt. Though, /mnt is used by some ports. It's better to create a directory somewhere when playing with anything fs related.
 
Back
Top