You helped me to build my NAS back in 2020, now I need your help restoring data. I am writing this post with a heart rate of 200 bpm and totally distraught by my own stupidity...
tl;dr: Platform: TrueNAS Scale. I used
Story of me being so uncareful... I have a 10TB RAIDZ2
The best solution I found online was to attempt a "rollback ZFS transaction" as described in a this post. I understood that every minute the NAS is running, there's the risk of data being overwritten, so I haven't turned it back on until I'm sure of what to do next.
I'm considering a professional service. However, I'd appreciate recommendations on free options if they exist.
How can I restore the data?
tl;dr: Platform: TrueNAS Scale. I used
zfs destroy
on the dataset tank/Photos_and_Videos
in TrueNAS Scale inside the Shell. I received a message along the lines of "Dataset cannot be destroyed because it is busy"
. However, upon accessing the dataset, it was empty and all 2TB of files were missing. The Dataset is still visible though. Can I recover my files? I don't have any snapshots or backups as this happened during my preparations to add a backup pool.Story of me being so uncareful... I have a 10TB RAIDZ2
tank
pool where, recently, I copied large amounts of data back and forth, including a 2TB collection of photos and videos stored in the dataset tank/Photos_and_Videos
. Because I've been copying and modifying large zipped files for the last few days, my snapshots significantly increased in size. I tried removing the unnecessary snapshots to reduce the size in order to fit it into my new backup pool. However, I was unable to delete these snapshots via the GUI. I resorted to using the Shell and executed zfs destroy
on all snapshots individually. For some reason, at the end, I did zfs destroy
on tank/Photos_and_Videos
, mistakenly thinking it was the last top-level snapshot. This was the OMG moment. The shell immediately came back with a message something like "Dataset cannot be destroyed because it is busy"
. I checked the dataset via SMB and could access it, but the files were missing. Upon accessing the dataset via Shell, it was also empty. Yet, dataset itself still is showing in the GUI with the same amount of "Used/Available Space". After doing some reading, I immediately powered off my NAS and haven't turned it back on since.- Considering I received the message "Dataset cannot be destroyed because it is busy" is there a chance that the dataset is still intact despite the files seemingly being hidden in some way? The message came back instantaneously so I hope it didn't really remove anything because while removing snapshots earlier it took a bit longer before the delete confirmation.
The best solution I found online was to attempt a "rollback ZFS transaction" as described in a this post. I understood that every minute the NAS is running, there's the risk of data being overwritten, so I haven't turned it back on until I'm sure of what to do next.
I'm considering a professional service. However, I'd appreciate recommendations on free options if they exist.
How can I restore the data?