Page 1 of 1

lost zfs pool

Posted: 30 Oct 2013 19:34
by jmw
Hi,

I am running nas4free 9.1.0.1 embed with 6x2TB HD configured as zfs raidz2. This was working perfectly. But I wanted to move from embed to full version I had a small HD sitting around. To install initially the embed system, I used 2 USB keys : one live USB (number 1) and another (number 2) that is my booting system. I replaced number 2 USB with number 1 in order to configure the HD this worked perfectly. But I wanted to stop the migration today (from embed to full) and continue another time. So I put my USB boot key number 2 back. But after the boot I noticed that the zfs pool and mount point was lost and all the service defintion. The data is still on the disk.
How can I now create the zfs pool without reinitializing my 6 disks? is it possible?
Through the webGUI I imported the 6 disks (image attached).
How to proceed to recrete the zpool?
I started creating the virtual device and the the zpool. But does this step reinitialize everything?
So for the moment I did nothing except importing the 6 disks with the webGUI.
Thanks fro your help.
Best regards,

Re: lost zfs pool

Posted: 30 Oct 2013 21:35
by raulfg3
all is more easy as you think.

Disconect your data disk to be safe & sure that do a fresh full install in a new USB or boot disk, once booted sucesfully, shutdown your NAS, connect data disk and boot from new full install, once done, restore your previosly saved config, and your pool must be mounted.

if this not work or you want to configure all from scratch, you only need to use button "Clear config & import Disk" on Disks|Management this load your DATA disk in your NAS, nex import your ZFS pool in Disks|ZFS|Configuration|Detected , use button "Import ZFS pool", push only one time, if import do not work, push a second one time ( this use -f = force flag) to import your pool.

Once done go to : Disks|ZFS|Configuration|Synchronize and push Syncronize button to sync your current with your detected ZFS configuration.

Thats all, and remember, NEVER create a vdev or zpool because this command delete / destroy your old ZFS pool to create one new ( whit old name if you use old name, but data empty because is a new pool).

Re: lost zfs pool

Posted: 31 Oct 2013 11:53
by jmw
Hi,

thanks for your answer.
After I posted my mail with :
1) the disk detected automatically
2) with the virtual device defined
3) but no pool defined <====
I rebooted the system and the status page showed again some data on a "zpool".
This zpool had all properties undefined (under Disks/ZFS/Pools/Management).
I went also under Disks/ZFS/Pools/Tools and used the command history that showed that nas4free free did a :
zpool import -d /dev -f -a
I had just to synchronize the zfs setup as you describe in your mail (Disk/ZFS/Configuration/Synchronize) and everything came back to normal.
I hope this can help.
And again thanks for your help.