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!

How to export/import a POOL (3drives -ZRAID)

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
nas4free.os
NewUser
NewUser
Posts: 9
Joined: 19 Feb 2016 13:44
Status: Offline

How to export/import a POOL (3drives -ZRAID)

Post by nas4free.os »

Hi guys,

I need to perform some hardware changes (adding an SATA contoller) on my embedded Nas4free Server.
Unfortunately this addition adds new device ports (adaX adaY to my existing ada0..3 etc... and worse, renumbers my old devices ada0-3 ) so I guess before connecting the new controller I need to EXPORT somehow my existing and working POOL and later on need to IMPORT this pool to the newly configured system (i.e. after installing the additional SATA controller)... correct ??

So, the question of the day... HO TO DO THIS ?? export and import a Pool correctly..

Thank'S for your help in advance

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

Re: How to export/import a POOL (3drives -ZRAID)

Post by kenZ71 »

If you are staying with the same drives just move them over

If new drives you can either put 2 old plus one new drive in the new machine and rebuild the pool then repeat again or use ZFS send & ZFS receive. Google ZFS send and ZFS resilver to see the difference

Edit: make sure you have a backup copy as well!
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

nas4free.os
NewUser
NewUser
Posts: 9
Joined: 19 Feb 2016 13:44
Status: Offline

Re: How to export/import a POOL (3drives -ZRAID)

Post by nas4free.os »

kenZ71 wrote:If you are staying with the same drives just move them over

If new drives you can either put 2 old plus one new drive in the new machine and rebuild the pool then repeat again or use ZFS send & ZFS receive. Google ZFS send and ZFS resilver to see the difference

Edit: make sure you have a backup copy as well!
Sorry, maybe I'm not using the correct terminology for rporting my issue here..
I guess you just read the SUBJECT line ? Your answer is not realy helping me...

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

Re: How to export/import a POOL (3drives -ZRAID)

Post by raulfg3 »

Use export in webGui and later use import twice to "forcé" import, next you need to sync webGui and your real ZFS pool
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

nas4free.os
NewUser
NewUser
Posts: 9
Joined: 19 Feb 2016 13:44
Status: Offline

Re: How to export/import a POOL (3drives -ZRAID)

Post by nas4free.os »

raulfg3 wrote:Use export in webGui and later use import twice to "forcé" import, next you need to sync webGui and your real ZFS pool
well... can't find any EXPORT or IMPORT commands in the GUI under [ZFS / POOLS-> TOOLS] but "only" online/offline and attach/detach... or should I use the Konsole (zpool export "myPoolname") command instead ??

Am I missing something ??

Thank's

Oliver

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

Re: How to export/import a POOL (3drives -ZRAID)

Post by raulfg3 »

Sorry i am out, perhaps other user can atach a screen capture or guide to you
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

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

Re: How to export/import a POOL (3drives -ZRAID)

Post by slaycock »

close down your NAS. Add the new hardware. Reconnect the Zfs disks any way you wish. Restart NAS. In disk manager refresh/rebuild the listing of disks. Goto zfs and synchronise, do a forced synchronise if necessary.

Always worked for me.

scott1256ca
NewUser
NewUser
Posts: 12
Joined: 28 Jun 2012 02:14
Status: Offline

Re: How to export/import a POOL (3drives -ZRAID)

Post by scott1256ca »

running 10.2.0.2 on one box and 9.0.0.1 on another. I recently had to do something similar. I have the older box using just ufs and wanted to expand space. I decided to start a new box, then I can upgrade the OS of the older when done. So anyway, I put 3 disks in the old box and created a zfs pool and copied a couple of test files to it. Then, from command line in a shell did a zpool export <poolname>. I don't think I really needed to since I was going to shutdown anyway. Moved the disks over to the new box and added them with disk management to the new box, selecting zpool device under preformatting. Went into zfs, creating a virtual device and selected my devices, then into zfs management and added my virtual device using the same name for the pool I had used on the other box. I don't recall any other steps. It started up without any trouble at all. test files I had copied over were intact. I never had to do a synchronize. Maybe I should have, but to late to worry about it now :).
I was pleasantly surprised that it was as easy as it was. I added a file to the pool to be sure I could. When I took the drives out of the new box and put them back in the old, I did not do the zpool export. They started up in the old box under the zpool I had already created for them just fine. Copied the files to them that I really needed and moved them over to the new box permanently. No problems. zfs seems very forgiving of this kind of thing. kudos to the creators and developers.

Post Reply

Return to “ZFS (only!)”