Page 1 of 1

WORRIED! Deleted ZFS Pool from webgui

Posted: 24 Aug 2013 01:56
by taney
Hi! I deleted the pool from the GUI and I have done it before without huge consequences.

Usually, I would be able to import it from shell with: zpool import -F tank

tdcnas: ~ # zpool import -F tank
cannot import 'tank': no such pool available

I have 6x3TB drives filled with data. Is there any chance of recovery or am I completely screwed? =(

Re: WORRIED! Deleted ZFS Pool from webgui

Posted: 24 Aug 2013 02:14
by taney
So I found out you could always recover deleted pools with zpool import -D

In my case, my pool was faulted and it looks beyond recovery =(

Re: WORRIED! Deleted ZFS Pool from webgui

Posted: 25 Aug 2013 20:23
by substr
You could try zpool import -D -fF tank
or zpool import -D -fFX tank

The second command might take a long time(hours) before success/fail. It is also a very good idea to make sure all the vdevs are available and at their expected locations. If one is failed, you can try imaging the failed disk to a new drive(with ddrescue, etc), or just try with that drive removed if there is redundancy available.

In these situations, it seems making sure you have a FreeBSD 9.1-based system is a good idea. In desperate cases, using the Illumos or other very recent verions of a live boot CD can also work.

There is a high chance of recovery, since the data is all still there, depending on what you mean by 'faulted.' The difficulty/price of recovery is the question.

For anyone else reading, deleting/destroying a pool is not a good idea unless you mean it. Use export instead.