Page 1 of 1

[SOLVED] resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 19:48
by zfsdummy
Hi guys,

i was in the process of moving my ZFS pool to nas4free (from freenas 7.2) and i did have a few problems getting the pool properly registered in the gui (export/import worked fine).
the GUI was giving me some "error 1" crap when i tried to reestablish the pool (after the CLI import command worked) - so in my despair i tried to recreate the config again and did something fairly impetuous, i used the "delete" function on the raidpool in the UI ...
well bottom line, seems i deleted my raidpool (raidz1) - is there any way to get it back? (restore the raidz pool from the data that is still lying on the 3 HDDs?)

i'd be very glad for any input ...

cheers

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 19:57
by kkd
i think no way get it back.
try to restore the config from webgui and reboot

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 20:15
by zfsdummy
restoring the config does bring back the pool entry in UI but all the fields except the poolname display "unknown" as value.
CLI zfs and zpool cmds say theres no pool anymore (which is pretty much expected since i used the "delete" feature in the UI) but my last hope was if such a deleted pool configuration can be re-created from the data left on the drives and/or the information left in the backed up freenas config

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 20:27
by zfsdummy
at least the disks in disk-management section still show ZFS storage pool device ... thats why i have some hope left to find a way to put the pieces back together

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 21:00
by raulfg3
you can try this, but is from shell not from WebGUI:

Please read docs first: http://docs.oracle.com/cd/E19082-01/817 ... index.html

http://docs.oracle.com/cd/E19082-01/817 ... index.html

Code: Select all

zpool import -D
and post result, if good result you can do

Code: Select all

zpool import -D yourpoolnamehere

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 21:06
by kkd
try import on webgui.

just read raul's post
raul has a better suggestion. try that

Re: resurrecting a deleted pool - is that possible?

Posted: 04 Jun 2013 21:37
by zfsdummy
holy cow!

thanks guys for your quick responses ... I was bugging google too for solutions in the meantime and came across a blog post http://cyborgworkshop.org/2008/09/03/un ... -zfs-pool/ that also pointed out the same commands that raul listed above.
what can i say ... my pool is back!
now i will be extra careful to bring it into my new nas4free instance ...

thanks again ... case closed i'd say