Skip to content

btrfs scrub doesn't offer an obvious way to find the affected file #836

Open
@ell1e

Description

@ell1e

When it finds any uncorrectable errors, it seems like btrfs scrub doesn't offer an obvious way to find the affected file. Specifically, this is the output I'm getting:

# btrfs scrub status /
UUID:             c7272b0e-d685-41ab-89d4-486ccb593444
Scrub started:    Fri Jul  5 07:32:52 2024
Status:           finished
Duration:         2:36:56
Total to scrub:   180.68GiB
Rate:             19.78MiB/s
Error summary:    csum=1
  Corrected:      0
  Uncorrectable:  1
  Unverified:     0
#

There is no file path here, and also no info on how to get one. Then I checked in dmesg where I found this:

10094.516628] BTRFS error (device dm-0): unable to fixup (regular) error at logical 192613056512 on dev /dev/mapper/root physical 193796243456
[10546.842111] BTRFS info (device dm-0): scrub: finished on devid 1 with status: 0

As far as I can tell, there is no file path here either and I couldn't find any other output. My apologies if I missed something obvious.

While I get that the idea is that at this point a change of storage device might be in order for the medium term, this seems to leave the user without any short term actionable solution. I think the obvious thing to do in most cases is to identify the damaged file and to delete and/or re-retrieve it from a backup, but this doesn't seem feasible without knowing which file it is. It would be great if any of the generated output gave more obvious pointers for that purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementkernelsomething in kernel has to be done too

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions