Git Product home page Git Product logo

Comments (2)

Zygo avatar Zygo commented on June 1, 2024

The current bees algorithm loops too many times when many blocks in many files are identical. This is fairly common in BMP files. The exception just breaks the loop. If the loop is allowed to run until completion it can take several days to process each file.

Can you say more about what exactly is going wrong with the filesystem?

from bees.

PeeJay avatar PeeJay commented on June 1, 2024

When it first happened I asked on the BTRFS mailing list for help to recover (https://www.spinics.net/lists/linux-btrfs/msg75143.html) but I was using zstd compression so couldn't use any of the normal tools, so I gave up. That instance of corruption was particularly bad, as it was only noticed after the FS went read only.
The second time (during the rebuild) I was being a bit more proactive about running scrub every day or two, which is how I found the corruption. There were no IO errors or other kernel messages beforehand. I wasn't capturing the output from bees so I don't know if it emitted any errors.
I tried to fix the FS, but btrfs check couldn't do it. Then I tried to btrfs check --init-extent-tree which seemed to be working, but I stopped it after millions of errors and 26 hours.
I'm rebuilding for the 3rd time now and no errors so far. I haven't deleted any snapshots with bees running (I remember a while back that would crash bees). Just create snapshot, rsync data, and repeat.
I may have also rebooted while bees was running, and if the drive didn't unmount in time then a bunch of dirty metadata would get lost.
Basically I have no idea where the problem is at the moment, still looking. I doubt it's bees though, more likely the kernel dedupe ioctls. If I have anything to report I'll let you know

from bees.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.