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!

Moving ZFS mount location

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Impulse1
Starter
Starter
Posts: 37
Joined: 06 Jul 2012 06:01
Status: Offline

Moving ZFS mount location

Post 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?

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: Moving ZFS mount location

Post by kenZ71 »

No worries

Mount your pool under /mnt that's where mine has been past few years, working great
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: Moving ZFS mount location

Post by Parkcomm »

zfs set mountpoint=mnt/poolname poolname
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Impulse1
Starter
Starter
Posts: 37
Joined: 06 Jul 2012 06:01
Status: Offline

Re: Moving ZFS mount location

Post 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?

wingenieur
Starter
Starter
Posts: 36
Joined: 25 Jan 2014 00:57
Location: Germany
Status: Offline

Re: Moving ZFS mount location

Post 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!
NAS4free 12.1.0.4.7091 x64-embedded
addons (jailed with vnet and epair): Serviio 2.0 Pro
hardware:
mainboard: ASRock E3C242D4U2-2T
cpu: Intel i3-8350K
ram: 4x Kingston KSM24ED8/16ME
extra storage controller: LSI SAS 9207-8i, LSI SAS 9211-8i

storage:
boot, system, swap (geli), data: ADATA SX8200 Pro 256GB
raidz2_1 (@C242, geli): 6x Seagate ST8000VN0022
raidz2_2 (@LSI 9211, geli): 6x Seagate 3 TB mixed
2x triple-mirror (@LSI 9207, geli): 6x 500 GB Crucial MX500

slaycock
experienced User
experienced User
Posts: 93
Joined: 24 Jun 2012 17:15
Status: Offline

Re: Moving ZFS mount location

Post 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/

Impulse1
Starter
Starter
Posts: 37
Joined: 06 Jul 2012 06:01
Status: Offline

Re: Moving ZFS mount location

Post 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

slaycock
experienced User
experienced User
Posts: 93
Joined: 24 Jun 2012 17:15
Status: Offline

Re: Moving ZFS mount location

Post 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.

Post Reply

Return to “ZFS (only!)”