Recover destroyed ZFS filesystem

rmartin

New Member
Jul 1, 2019
2
0
1
55
I have a ZFS pool with several filesystems, one of them, "subvol-100-disk-0" was used by a container.
After reinstalling proxmox, I readded the ZFS pool using zpool import, and restored all the VMs from backups without any mayor inconvenience. However, when I restored a container, I found out that the mountpoint it was using was empty, becouse Proxmox had destroyed the filesystem referenced by the container, and recreated it, as shows zpool history | grep hddp/subvol-100-disk-0

2018-10-25.00:08:13 zfs create -o acltype=posixacl -o xattr=sa -o refquota=1048576000k hddp/subvol-100-disk-0
2019-06-30.21:18:28 zfs destroy -r hddp/subvol-100-disk-0
2019-06-30.21:19:10 zfs create -o acltype=posixacl -o xattr=sa -o refquota=10485760k hddp/subvol-100-disk-0

Can the filesystem recovered in any way? Or at least as much data as possible. I dont have backups of this whole filesystem.

Thanks in advance.
 
Hi, it's sad to say that maybe it's very difficult to recover the system, but maybe you can try the ButwarRecovery tool. I am not sure whether it can be surely recovered, but you can have a try. Hope you can find a way to recover it. Good luck!
 
Hi,

You can not recover any data from zfs using any tool that do not know very well about zfs. Your only chance is to use zdb(but depends ...) if you have at least some snapshot.