Page 1 of 1

Lost my ZFS by stupidity

Posted: 30 Dec 2014 22:05
by DBlade82
Hi,

I think I screwed up big. I lost my ZFS by my own fault. Now I hope someone could tell me if there is any chance I can get my data back? Last Backups misses some importent files :(

What I did.

I wanned to upgrade from version (9.1.0.1) to the newest version of NAS4free.

Therefor:
I got the newest NAS4free Version (9.3.0.2)(64bit). Installed it as embedded on a new stick.
To get back my old ZFS i went to Disks|ZFS|Pools|Virtual device and made a new virtual device with the disk I used in my old version.
Then I went to Disks|ZFS|Pools|Management and made a new ZFS with the name of the one in the old installation.
Afterwards i found it mounted in /mnt/NineTBArray where I wanted it to be. All my data where still accessable.

Then I think I screwed it up bad. I went to Disks|ZFS|Pools|Management again and deleted the ZFS again. Don't ask why I did so, I don't understand myself. After that I created it again. Since then NAS4Free has the ZFS status FAULTED.

Information says this:

Code: Select all

  pool: NineTBArray
 state: UNAVAIL
status: One or more devices could not be opened.  There are insufficient
	replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-3C
  scan: none requested
config:

	NAME                  STATE     READ WRITE CKSUM
	NineTBArray           UNAVAIL      0     0     0
	  734216238915800196  UNAVAIL      0     0     0  was /dev/da1.nop
Is there any chance I get my data back?

Thank all of you

Marcel

Re: Lost my ZFS by stupidity

Posted: 31 Dec 2014 00:28
by Onichan
Sounds like you made more than one mistake, it sounds like on the new thumb drive you created a new pool (but called it the same thing) on the old disks that had your old pool. That is probably what destroyed your pool as it should have done a quick format on the disk(s) which had all your data. You can actually recover deleted pools as long as they haven't been touched after deleting the pool using

Code: Select all

zpool import -D poolname
but that doesn't look like it will work in your case as you probably formatted the pool drive(s). You can try a

Code: Select all

zpool status
and see if it lists your old pool, it should have it with a (DESTROYED) status if it sees it.

Now since it was only a quick format you should be able to recover 100% of the files if you send in the drive(s) for file recover, but it's not going to be cheap. I hope you had backups of important data, this is why RAID isn't a backup. Sorry, it does suck to loose data, especially from avoidable mistakes.

Re: Lost my ZFS by stupidity

Posted: 31 Dec 2014 09:16
by DBlade82
Hi Onichan,

thank you for your reply. You told me what I already feared. :( I Think that's how you learn to take better care.

I tried the things you said. The output of:

Code: Select all

zpool import -D NineTBArray
is this:

Code: Select all

cannot import 'NineTBArray': a pool with that name is already created/imported,
and no additional pools with that name were found
the

Code: Select all

zpool status
returns the code I already posted in my initial post.

Do you think theres any chance left without sending the harddrives to a file recover company. I've seen they are pretty expensive so thats no option :(

Thank you

Marcel

Re: Lost my ZFS by stupidity

Posted: 01 Jan 2015 01:50
by Onichan
I don't have any idea's, I don't think any ZFS recover software exists. You could try asking on the FreeBSD forums https://forums.freebsd.org/forums/storage.48/ but since you basically reformatted the drives the only thing I can think of is some kind of ZFS recovery software that does a full disk scan or sending them in.

Re: Lost my ZFS by stupidity

Posted: 01 Jan 2015 12:14
by DBlade82
Ok, thank you again for your reply. For the moment I leave the system untouched and have to make up my mind how importend the data is to me.