8000 [FEATURE] mfschunktool: option to delete corrupted files · Issue #632 · moosefs/moosefs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[FEATURE] mfschunktool: option to delete corrupted files #632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
onlyjob opened this issue Jan 20, 2025 · 3 comments
Open

[FEATURE] mfschunktool: option to delete corrupted files #632

onlyjob opened this issue Jan 20, 2025 · 3 comments
Labels
feature Idea of a new feature to make MooseFS even better! :) needs feedback
8000

Comments

@onlyjob
Copy link
Contributor
onlyjob commented Jan 20, 2025

Please consider enhancing mfschunktool by adding command line option to delete corrupted files. Thanks.

@chogata
Copy link
Member
chogata commented Feb 5, 2025

It's doable, no problem, but sounds like a dangerous option (easy to mistakenly use the wrong switch and delete instead of repair).

Maybe this option could move corrupted chunk files to a special directory (named "damaged" for example)? Then you can delete the whole directory at the end if you so desire. And if you used that option by mistake, the chunks are not gone, it's enough to put them back in any chunk directory(ies).

@chogata chogata added feature Idea of a new feature to make MooseFS even better! :) needs feedback labels Feb 5, 2025
@onlyjob
Copy link
Contributor Author
onlyjob commented Feb 21, 2025

IMHO removing corrupted chunks is safe, if they are truly corrupted. (See #641 for bug-report of issue when mfschunktool incorrectly report valid chunks of size 8192 as corrupted in fast mode.)

With #641 unfixed, removing not-really-corrupted chunks would be incredibly dangerous. But normally it should be safe, and it would be even safer to move corrupted chunks aside.

@chogata
Copy link
Member
chogata commented Feb 21, 2025

We have implemented the option to move corrupted chunks to a specified directory when using mfschunktool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Idea of a new feature to make MooseFS even better! :) needs feedback
Projects
None yet
Development

No branches or pull requests

2 participants
0