Page 1 of 1

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

Posted: 21 Mar 2016 18:24
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

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

Posted: 21 Mar 2016 18:47
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!

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

Posted: 21 Mar 2016 19:08
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...

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

Posted: 21 Mar 2016 21:36
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

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

Posted: 22 Mar 2016 14:04
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

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

Posted: 22 Mar 2016 16:58
by raulfg3
Sorry i am out, perhaps other user can atach a screen capture or guide to you

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

Posted: 22 Mar 2016 17:09
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.

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

Posted: 28 Apr 2016 17:11
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.