This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Move /MyZFSdrive to /mnt/MyZFSdrive [Solved]

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
fisheater
NewUser
NewUser
Posts: 7
Joined: 27 Jul 2012 10:18
Status: Offline

Move /MyZFSdrive to /mnt/MyZFSdrive [Solved]

Post by fisheater »

Hi all,

First post, reading for a while now. I just migrated from FN8 to the current build.

When imported my ZFS pool, it mounted it in /MyDrive rather /mnt/MyDrive.

Reading the wiki, it is recommended to use the /mnt/ for security and stability.

How do I move my ZFS mount point, without redoing/rebuilding the ZFS pool?

Question 2: do I need to move it at all?

Thanks!

FE
Last edited by fisheater on 27 Aug 2012 23:43, edited 1 time in total.

kernow
experienced User
experienced User
Posts: 92
Joined: 23 Jun 2012 01:28
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by kernow »

Code: Select all

zfs set mountpoint=/mnt/MyDrive /MyDrive
HP Microserver N36L / 6GB ECC RAM / 2 x 2TB WD20EARS, N4F9.1.x

fisheater
NewUser
NewUser
Posts: 7
Joined: 27 Jul 2012 10:18
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by fisheater »

thanks heaps.

1. I tried via GUI, it did no seem to work. It did not change the mount point.
2. I tried the CLI, confirmed where the current mount point is located with with 'zfs list'. zfs set mountpoint=/mnt/FreeNAS /FreeNAS. It returned the error, 'cannot open '/FreeNAS': invalid dataset name.

Suggestions?

Kind regards,

FE

kernow
experienced User
experienced User
Posts: 92
Joined: 23 Jun 2012 01:28
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by kernow »

is your mountpoint MyDrive or FreeNAS?

Both are a pretty nondescript and poor choice for a mountpoint name. I use /mnt/data.
HP Microserver N36L / 6GB ECC RAM / 2 x 2TB WD20EARS, N4F9.1.x

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by raulfg3 »

Copied from other post: viewtopic.php?f=66&t=193&start=10


Hey, your reply is very interesting, I remember a post in the deleted old Nas4free forum of someone that upgrade from FreeNAS 8 that have the same beaviour, and the problem was that FreeNAS 8 Mont / Create Pool in a diferent folder that FreeNAS 7, so you need to impor from GUI adding desired mount point because the mount point originally in FreeNAS 8 Do not work on FreeNAS 7


zpool import -R /mnt -f poolname


or


zpool import -o mountpoint=/mnt -f poolname


You must export your pool before to import to work.


It is interesting too, viewtopic.php?f=66&t=764
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

fisheater
NewUser
NewUser
Posts: 7
Joined: 27 Jul 2012 10:18
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by fisheater »

Solved!

Was: zfs set mountpoint=/mnt/FreeNAS /FreeNAS

Correct syntax: zfs set mountpoint=/mnt/FreeNAS FreeNAS

The difference was the leading / before my existing mount point.

Big thanks to all you of you, inc <@killermist> on the irc.

Working.

Thanks!

User avatar
killermist
NewUser
NewUser
Posts: 4
Joined: 22 Jul 2012 19:38
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by killermist »

fisheater wrote:Solved!
Correct syntax: zfs set mountpoint=/mnt/FreeNAS FreeNAS

The difference was the leading / before my existing mount point.
Correction: The last parameter isn't a "mount point", but a pool name.

I guess I can chalk that one up as yet one more reason to dislike FreeNAS8 design. They probably make things that much more "user friendly" because they're certain their users are idiots.

fisheater
NewUser
NewUser
Posts: 7
Joined: 27 Jul 2012 10:18
Status: Offline

Re: Move /MyZFSdrive to /mnt/MyZFSdrive

Post by fisheater »

Thanks killermist. This is a new language to me, and getting the details correct make this all work.

I should say that after I moved my pool from
/FreeNAS
to
/mnt/FreeNAS

I then moved it again away from the legacy mount spot (/mnt) to /volumes/FreeNAS.

TY

FE

Post Reply

Return to “ZFS (only!)”