*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
slaycock
experienced User
experienced User
Posts: 94
Joined: 24 Jun 2012 17:15
Status: Offline

[HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

#1

Post by slaycock » 09 Sep 2012 16:14

I have a ZFS volume that was created under FreeNAS 7. This has been migrated to FreeNAS and and now to NAS4Free. The pool contains a single dataset. However the pool is imported into the root directory and not under the mnt directory.

The CIFS/Samba documentation strongly suggests that shares should be located in mnt. Up to now there have been no problems, but in upgrading to the current nightly of NAS4Free I can no longer see the share. Nothing else has changed.

Any suggestions?

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

Re: Importing ZFS volumes

#2

Post by raulfg3 » 10 Sep 2012 09:05

you need to impor from shell adding desired mount point because the mount point originally in FreeNAS 8 Do not work on FreeNAS 7 = Nas4Free.

Code: Select all

zpool import -R /mnt -f poolname
or

Code: Select all

zpool import -o mountpoint=/mnt -f poolname
PD: if your pool is actually imported, first need to export.

When done and works, go to ZFS WEBGUI and syncronize to reflect changes you do in shell.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

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

Re: [HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

#3

Post by slaycock » 10 Sep 2012 16:56

Thanks for the prompt response. Unfortunately the two shell commands above do not work.

The command

zpool import -R /mnt -f poolname

Works for the current session but dissappears when NAS4FREE is rebooted.

The command

zpool import -o mountpoint=/mnt -f poolname

gave the response that 'mountpoint' is not a valid zpool option but your command agrees with those I've googled.

Do I need to create a directory in /mnt to be able to mount my pool.

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

Re: [HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

#4

Post by slaycock » 10 Sep 2012 17:30

A. Found the answer. zfs set mountpoint=/mnt/poolname poolname

Moves the pool 'poolname' also mounted as 'poolname' to a new mountpoint. Don't use just '/mnt'. Checked and it does survive a reboot.

Please also note that you will need to reimport in the GUI as synchronisation doesn't detect this change. So BEFORE you delete the pool in the GUI please export it from the command line. Then delete from the GUI. The you won't inadvertently delete the filepool as I did. If you do accidently delete the file pool then you can get it back using

zpool import -D -f poolname

However I did note that using the GUI to import a pool already imported from the command line still doesn't set the mountpoint field in the GUI ZFS configuration screen.

REgards

Steve

robo1
Status: Offline

Re: [HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

#5

Post by robo1 » 04 Jan 2013 02:50

Hi :

Please help I am migrating my pool form 8.3 to nas4free i run the command zpool import -R /mnt/poolname -f poolname i can see the pool and thing look good but it does not show in the gui nor hold upon reboot can some please walk me through the proper steps to setup this pool many thanks

Robert

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

Re: [HOWTO] Importing ZFS volumes from FreeNAS 8 to Nas4Free

#6

Post by raulfg3 » 04 Jan 2013 10:59

to see in the GUI you need to go to ZFS | Configuration | Synchronize,

And synchronize your Pool to web GUI:

http://wiki.nas4free.org/doku.php?id=do ... n_detected
http://wiki.nas4free.org/doku.php?id=do ... ynchronize
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Post Reply

Return to “ZFS (only!)”