Closed TH3L0N3WOLF closed 9 years ago
Thanks for the bug report (sorry for the delay, I was in vacation :)
I traced the problem down to this line from btrfs subvolume list
output:
ID 324 gen 1044 cgen 119 top level 335 parent_uuid - received_uuid e32e9aa2-0eeb-bc47-8c85-e256d4c04265 uuid 92709d52-1f6e-0147-b367-0a9a37414ca6 path <FS_TREE>/server/var/lib/machines/guest_os
The fun thing is that ID 324
has top level 335
(which is greater than 324) which I thought could never happen (and I'm still puzzled why it is like this on your restore scenario). btrbk reads this tree linearly and as 335 is not yet parsed, it fails there. Seems that I have to rewrite this function...
@TH3L0N3WOLF can you confirm the fix on the "fix_subvol_list" branch is working for you?
@digint Confirmed, the fix_subvol_list branch is working perfectly. It was a really funky restore (using tools I threw into an initramfs and fixed remotely, woo!), so I wouldn't be surprised if I did something really weird in the process. Regardless, everything's working perfectly now.
EDIT: I hate that close issue button. I didn't even click it and it still acted on it's own.
fixed in: 360deca5f2dfb26770a3753f403fd8674936896f
Yesterday, I messed around with a mainline kernel as there was a bug in BTRFS prohibiting me from converting my setup from RAID0 to raid10. The conversion worked, but I lost power three quarters of the way through and corrupted the file system. So, I went ahead and re-created it, using the snapshots taken from my backup disk via btrbk. After a couple of hours of btrfs send/receive, I have a fully functional system again and thought I couldn't be happier, until I attempted to run btrbk to resume my backups.
Upon running, I get this error:
Running with btrbk -l trace run, the error is printed right after:
My btrbk config is as follows:
All snapshot directories and subvolumes appear to be accounted for. I'm not sure how I should proceed.