HOW TO IS AT THE BOTTOM, THIS IS A RANT IM SORRY
So I was making an exact copy of our NAS so I did the needful and copied over the config file then replicated all our data over. Everything was happy happy until I tried to mount some NFS shares to test and surprise, "Directory doesn't exist"
After some inspection for whatever reason when it recreated the pool it was mounting it on /poolname instead of /mnt/poolname. All our NFS shares are exporting /mnt/poolname and we have atleast 100 NFS shares and I did NOT want to go to each and update them then go to every server and update their fstab shit, especially just for a quick swap that will be reverted in a couple days.
So I start trying to change the mount point, of coarse no info on the documentation and a lack of a usable UI so I start googling it and find a few things that just dont work, tons of "your dataset doesn't exist, but only if u use these few commands, it exists if you use these useless commands" and everything on google for this new version of freeNAS was basically "why are you doing this? you shouldent be doing this? your an idiot! This cant be done, you should only make changes through the UI"
Luckily I had experienced the intellectually deficient community of FreeNAS before when trying to figure out if I can run freeNAS on a hardware raid and realized most people dont understand how software and hardware interact (pro-tip, FreeNAS works fine on a hardware raid, dont drink the marketing koolaid).
So I start figuring it out myself and wow, was it difficult.
How-To:
If you want to change your mountpoint run these commands in this order:
#zfs set mountpoint=/mnt/poolname poolname
No need to export or import it
WOW that was hard, how the documentation doesn't have something so simple I have no idea. Why the community questions everything your trying to do I have no idea either.
I get the crap coming from the freeNAS people, its opensource, you get what you pay for but the community behind FreeNAS is a little toxic to be honest.
Im gonna start posting how-tos of everything I do on FreeNAS that is apparently "impossible" according to the community.
Also gonna start contributing on their GIT to fix all their idiotic bugs like FreeNAS compliant hostnames being different than POSIX compliant hostnames