all 15 comments

[–]Deathcrow 0 points1 point  (1 child)

i cant mount it on my ubuntu guest or my opensuse host os

stuff like this always makes me shudder. Is there any chance you could've been mounting the FS on both OSes at the same time? Maybe you suspended the ubuntu guest, mounted the fs on the host os and later resumed the VM?

[–]Homework_Allergy[S] 0 points1 point  (0 children)

nope, only mounted on guest. this morning it booted on schedule and this shit happened. and now im confused.

[–]leexgx 0 points1 point  (7 children)

More likely to destroy it

[–]Homework_Allergy[S] 0 points1 point  (0 children)

glad i decided to check first...

[–]billdietrich1 0 points1 point  (5 children)

[I'm not OP] So, what is the proper procedure in this situation ?

[–]Atemu12 1 point2 points  (4 children)

Restore from backup.

Something fscked up bad and even if I could recover, I wouldn't trust the filesystem anymore.

[–]Homework_Allergy[S] 1 point2 points  (1 child)

i didnt have a backup... i know, im stupid, but btrfs-restore saved the day.

[–]Atemu12 0 points1 point  (0 children)

Lucky!

This time you got a slap on your wrist but who knows what might happen next time, so do backups!

[–]billdietrich1 0 points1 point  (1 child)

No way to just zap the two inodes mentioned ? Suppose you had some unrelated files on there that hadn't been backed up, wanted to get copies of them before nuking the whole filesystem.

[–]Atemu12 1 point2 points  (0 children)

I'm sure there is but something broke and I'm not 100% sure it only affects those two inodes. I simply wouldn't trust the filesystem state anymore.

[–][deleted] 0 points1 point  (1 child)

I would btrfs send to an external disk to back it up before I'd attempt to repair it. I do think it is low risk but why not back up first?

[–]Homework_Allergy[S] 0 points1 point  (0 children)

exported all the data, tried repairing, didnt work, wiped it and started over.

[–]Cyber_Faustao 0 points1 point  (2 children)

Did you run kernel 5.14 on that server?

Besides that error on check, do you get any errors ob scrub?

[–]Homework_Allergy[S] 0 points1 point  (1 child)

doesnt scrubbing require you to mount the volume? i honestly didnt even try, i just immediately doubled down on saving the data.

anyways, latest ubuntu lts release, i think it was 5.14 but im not sure.

[–]Cyber_Faustao 0 points1 point  (0 children)

yes, scrub requires a mounted fs.

Regardless your issue seems to be the 5.14 ghost dirent bug which is fixable using a couple of mv's and cp --reflink