Skip to content

bluefs: bluefs alloc unit should only be shrink - #57015

Merged
yuriw merged 1 commit into
ceph:mainfrom
liangmingyuanneo:wip-bluefs-max-alloc-size
Jun 5, 2024
Merged

yuriw merged 1 commit into
ceph:mainfrom
liangmingyuanneo:wip-bluefs-max-alloc-size

Conversation

@liangmingyuanneo

Copy link
Copy Markdown
Contributor

The alloc unit has already forbidden changed for bluestore, what's more, it should forbidden increased in bluefs. Otherwise, it can leads to coredump or bad data. Let's explain it use Bitmap Allocater, it has two presentations:
a) in BitmapAllocator::init_rm_free(offset, length), (offset + length) should bigger than offs. But when get_min_alloc_size() changed bigger, this can not be guaranteed.
b) if init_rm_free() are
successfully in luck, then in rocksdb compact, when release() be called, it release a small extent but may leads to larger extents be released to Bitmap. As a result, rocksdb data is corrupted, and the osd can not be booted again.

https://tracker.ceph.com/issues/65600

Signed-off-by: Mingyuan Liang [email protected]

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants