Page 1 of 1
Moving ZFS mount location
Posted: 27 May 2016 17:21
by Impulse1
When I first set up my NAS and ZFS pool I made the mistake (I think its a mistake) of making its mount location /mnt.
As in there is no /mnt/pool/[begin NAS file structure here] its just /mnt/[begin NAS file structure here].
I realize this is a limitation if I want to add any additional pools in the future, or just separate drives. is it possible to relocate my ZFS pool to a new mount location without rebuilding the pool? I really don't want to have to go out and buy 4TB worth of external drives to backup my pool just to relocate it.
Also, is this actually something I should worry about, or would I be able to create a /mnt2 in the future if I wanted to add new drives?
Re: Moving ZFS mount location
Posted: 28 May 2016 22:47
by kenZ71
No worries
Mount your pool under /mnt that's where mine has been past few years, working great
Re: Moving ZFS mount location
Posted: 29 May 2016 08:26
by Parkcomm
zfs set mountpoint=mnt/poolname poolname
Re: Moving ZFS mount location
Posted: 29 May 2016 16:53
by Impulse1
Ok I'll just leave it as is then. I haven't had any issues so far, I was just worried about when I wanted to add an additional pool and my current pool is called /mnt.
using the set mountpoint= command, can I change the location without any risk of loosing data?
Re: Moving ZFS mount location
Posted: 30 May 2016 01:19
by wingenieur
Yes, it is safe, because it won't touch the data in your pool.
You can also define the alternate mount point in GUI:
Disks|ZFS|Pools|Management|Edit
Have fun!
Re: Moving ZFS mount location
Posted: 30 May 2016 13:44
by slaycock
Can you post the output of zpool status.
In the meantime have a look at this to see if its relevant
http://prefetch.net/blog/index.php/2006 ... -zfs-pool/
Re: Moving ZFS mount location
Posted: 03 Jun 2016 01:45
by Impulse1
slaycock wrote:Can you post the output of zpool status.
Is this what you were looking for?
Code: Select all
nas4free: ~# zpool status
pool: Pool1
state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: none requested
config:
NAME STATE READ WRITE CKSUM
Pool1 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada4 ONLINE 0 0 0
ada5 ONLINE 0 0 0
errors: No known data errors
Re: Moving ZFS mount location
Posted: 03 Jun 2016 10:34
by slaycock
Thanks. From the GUI could you also do a Disks.zfs.configuration and report the text in the Name and Mount Point columns in the Pools(1) table.