-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accidental deletion of data on a VDO volume, any chance of recovering it? #66
Comments
Unfortunately, I think you’re probably looking at the best tools already. There’s no provision in VDO for accessing older versions of the content. If your file system isn’t mounted with the discard option, and you haven’t run fstrim, the unreferenced data blocks should be visible to file system recovery tools a while; VDO doesn’t know anything about the file system structure and will preserve the data until it’s overwritten or trimmed. We don’t immediately scribble over every block that’s been trimmed (and isn’t a duplicate), either, so the raw bits might survive a while on the underlying storage until they get reallocated to use for more data, especially if the data was highly compressible (because all compressed fragments stored together in one block have to have all references dropped before the block can be reused). But there’s no good way to locate the previous address mappings to put the file system structure back together. |
Hello @raeburn,
Yes, it's my case.
So, if I understand correctly, there is no chance I get back these files... ? Today I started the server, didn't mount the VDOLV, I ran a
And when I browse found files, I unhide deleted files but I don't find the folder I'm looking for... I'll re-try other tools in next days but any advice is welcome :) |
Hello,
Almost everything is in the title, I don't have backups or snapshots... Any idea ?
I'm using Debian 12, 6.1 kernel and KVDO 8.2.1.3
I already tried :
=> which gives me
testdisk write isn't available because the partition table type none
even if it detects EXT4 FSext4magic /dev/Ultron-vg/COMPRESSED-DEDUPLICATED-VDO-LV-1 -r /var/lib/docker/
=> which gives me
ERROR: can not use "RECOVERDIR" for recover directory. It's the same filesystem : "/dev/Ultron-vg/COMPRESSED-DEDUPLICATED-VDO-LV-1"
scalpel /dev/Ultron-vg/COMPRESSED-DEDUPLICATED-VDO-LV-1 -o /mnt/recovery/
=> which seems to recover a lot of things but no file tree...
extundelete /dev/Ultron-vg/COMPRESSED-DEDUPLICATED-VDO-LV-1 --restore-all
=> which gives me
Of course if you think I'm miss using one of these tools, tell me !
For now, I unmounted the volume and unloaded KVDO module to ensure nothing is cleaned... Although I already restarted.
Thanks in advance for your help !
The text was updated successfully, but these errors were encountered: