Recover deleted dataset - I know...

Status
Not open for further replies.
Joined
Jun 25, 2013
Messages
41
... I am stupid!!

Been shifting between 2 different FreeNAS Systems in my browser and they got mixed up. Damn.

However trying to recover the dataset as per some guides.

Adding

vfs.zfs.recover="1"

to /boot/loader.conf

My Pool : tank
My Dataset : vol

All disks are present - no errors with zpool status ( when tank is mounted )

I have found a TXG from just before the incident, and trying to mount with :

zpool import -N -o readonly=on -r -R /mnt -F -T 7888825 tank

cannot import 'tank': one or more devices is currently unavailable

On the other hand :

zpool import -N -f -R /mnt/tank -F tank

... imports the pool fine. Just no datasets.

Any pointers or guides you can throw at me?

Brgds
Bjarke Emborg Kragelund
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
The "one or more devices is currently unavailable" means you are missing disks from the pool(or those disks are incomplete for all applicable transactions that should be on that disk). Sounds like you have a somewhat incomplete disk in your vdev/pool and are up the proverbial creek.

I will warn you that what you are doing with -f and -F is quite dangerous, and even trying to use it at inappropriate times can make a simple problem significantly worse.
 
Status
Not open for further replies.
Top