Skip to contentSkip to conversation

Will "btrfs scrub" clear corrupt filesystem trees?

DISCUSSION Martin 2 participants 2 messages Oct 10, 2013 Btrfs file system

lore
Share & tools
lore

Martin

author
#0 lore raw

I have 1.5TB of data on a single disk formatted with defaults. There appears to be only two directory trees of a few MBytes that have suffered corruption (due to in the past too high a sata speed causing corruption).

The filesystem mounts fine. But how to clear out the corrupt trees?

At the moment, I have running:

btrfsck --repair --init-extent-tree /dev/sdc

parent transid verify failed on 911904604160 wanted 17448 found 17449 parent transid verify failed on 911904604160 wanted 17448 found 17449 parent transid verify failed on 911904604160 wanted 17448 found 17449 parent transid verify failed on 911904604160 wanted 17448 found 17449 Ignoring transid failure

... And it is still running after over two days now. Looped?

Would a:

btrfs scrub start

clear out the corrupt trees?

Must I wait for the btrfsck to complete if it is recreating an extents tree?...

Suggestions welcomed...

Martin

#1 lore raw
Quoted 6 lines · Martin

I have 1.5TB of data on a single disk formatted with defaults. There appears to be only two directory trees of a few MBytes that have suffered corruption (due to in the past too high a sata speed causing corruption).

The filesystem mounts fine. But how to clear out the corrupt trees?

If you've already gone through Hugo's list, I think it's a matter of waiting for further development for fixing such problems.

Quoted 7 lines

Would a:

btrfs scrub start

clear out the corrupt trees?

I don't think so.

Quoted 3 lines

Must I wait for the btrfsck to complete if it is recreating an extents tree?…

Yes because scrub is online/mounted, and btrfsck is offline/unmounted.

Chris Murphy