Repository navigation
luminous: os/bluestore: Added rescue procedure for bluefs log replay - #35776
Merged
neha-ojha merged 3 commits intoJul 15, 2020
Merged
Conversation
aclamk
force-pushed
the
wip-bluefs-log-replay-rescue-lum
branch
from
June 25, 2020 13:24
f722ef8 to
c6674ed
Compare
Contributor
|
@aclamk - we do want the same in master, don't we? |
Contributor
Author
Contributor
|
@aclamk - this might look like a grumbling but IMO that's a bad procedure that is bringing a mess into commit history... May be try pushing hard the patch forward through the master first? |
Contributor
Author
|
@ifed01 Problem is, that master does not need it. I would be unable to recreate state that is begin fixed here on master. |
Member
you could add an explanation in your commit message to explain why this commit is not cherry-picked from master |
aclamk
force-pushed
the
wip-bluefs-log-replay-rescue-lum
branch
from
June 28, 2020 09:18
67cae05 to
564c246
Compare
Contributor
Contributor
This is a procedure tries to find on disk unreachable extents and pretend they were already a part of bluefs log. If this gives proper crc, accept it. Fixes: https://tracker.ceph.com/issues/46195 Signed-off-by: Adam Kupczyk <[email protected]>
This ability only makes sense as a step that allows to perform fsck before commiting recovered bluefs log. Signed-off-by: Adam Kupczyk <[email protected]>
Adds additional paragraph to ceph-bluestore-tool documentation, describing how to use *special* options --bluefs_replay_recovery and --bluefs_replay_recovery_disable_compact to recover large bluefs log. Signed-off-by: Adam Kupczyk <[email protected]>
aclamk
force-pushed
the
wip-bluefs-log-replay-rescue-lum
branch
from
July 15, 2020 20:07
a7b7f3e to
cc4c069
Compare
neha-ojha
approved these changes
Jul 15, 2020
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a recovery procedure for cases where bluefs log grew so much that it cannot be read.
This fixes https://tracker.ceph.com/issues/46195 .
Recommended procedure:
ceph-bluestore-tool -l /proc/self/fd/1 --log-level 5 --path dev/osd1 fsck --debug_bluefs=5/5 --bluefs_replay_recovery=true --bluefs_replay_recovery_disable_compact=true
Fsck should complete with minimal errors.
ceph-bluestore-tool -l /proc/self/fd/1 --log-level 5 --path dev/osd1 fsck --debug_bluefs=5/5 --bluefs_replay_recovery=true