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!

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

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
zfsdummy
NewUser
NewUser
Posts: 4
Joined: 04 Jun 2013 19:06
Status: Offline

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

Post 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

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: resurrecting a deleted pool - is that possible?

Post by kkd »

i think no way get it back.
try to restore the config from webgui and reboot
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

zfsdummy
NewUser
NewUser
Posts: 4
Joined: 04 Jun 2013 19:06
Status: Offline

Re: resurrecting a deleted pool - is that possible?

Post 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

zfsdummy
NewUser
NewUser
Posts: 4
Joined: 04 Jun 2013 19:06
Status: Offline

Re: resurrecting a deleted pool - is that possible?

Post 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

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

Re: resurrecting a deleted pool - is that possible?

Post 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
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

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: resurrecting a deleted pool - is that possible?

Post by kkd »

try import on webgui.

just read raul's post
raul has a better suggestion. try that
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

zfsdummy
NewUser
NewUser
Posts: 4
Joined: 04 Jun 2013 19:06
Status: Offline

Re: resurrecting a deleted pool - is that possible?

Post 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

Post Reply

Return to “ZFS (only!)”