Undelete ZFS file shared by Samba

nexentaraidzsolarisundeletezfs

A user deleted a directory containing an important file over a Samba share.
Share was from a Nexenta box running ZFS, raid-Z3.

Last backup was 12 hours ago – is there a way to recover the 1 day's work?

Edit:
Asked about topic on Nexenta forums, similar responses.

Best Answer

Here's an example (albeit from 2008) of how one might use zdb/mdb to find the older uberblock and recover the orphaned file. Probably not too practical for single file undelete, but I had an unmountable raidz pool which was mostly recoverable after winding back past a dozen corrupt uberblocks. Given infinite time I don't think I could've ever done it, but with the help of a ZFS uber-guru like George Wilson such things are possible.

http://mbruning.blogspot.com/2008/08/recovering-removed-file-on-zfs-disk.html