Recovery Data from Raid ZFS

javcarbe

Dabbler
Joined
Mar 16, 2016
Messages
21
Any help to see if i can recovery my data, the files still there(name of the files, folders, etc) but 0kb
Thanks
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Yikes. I looked at the post history, seems as if a media plugin overwrote all of your files.

If you haven't made any other writes to the pool, you might be able to forcibly rewind to an earlier transaction.

Step 0: Back up anything that's important to another device.

zpool status poolname and pick a device by GPTID

zdb -ul /dev/gptid/some-gptid-of-a-pool-device - scroll through the output, look for a transaction group ID that is before the date where things went off the rails (before October 15th)

Export your pool.

Try to import it read-only with the command below.

zpool import -c /data/zfs/zpool.cache -o readonly=on -T <txgid> yourpoolname

You might need the -f (Force) option as well.

Look for your files.
 
Top