Skip to content

os/bluestore: fix statfs to not include DB partition in free space#13140

Merged
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-bluestore-statfs
Jan 27, 2017
Merged

os/bluestore: fix statfs to not include DB partition in free space#13140
liewegas merged 1 commit intoceph:masterfrom
liewegas:wip-bluestore-statfs

Conversation

@liewegas
Copy link
Member

If we report the DB space as vailable, ceph thinks the OSD can store more
data and will not mark the cluster as full as easily. And in reality, we
can't actually store data in this space--only metadata. Avoid the problem
by not reporting it as available.

Fixes: http://tracker.ceph.com/issues/18599
Signed-off-by: Sage Weil sage@redhat.com

If we report the DB space as vailable, ceph thinks the OSD can store more
data and will not mark the cluster as full as easily.  And in reality, we
can't actually store data in this space--only metadata.  Avoid the problem
by not reporting it as available.

Fixes: http://tracker.ceph.com/issues/18599
Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas force-pushed the wip-bluestore-statfs branch from bcd4502 to c66d5ba Compare January 26, 2017 19:27
@liewegas
Copy link
Member Author

Ah, on vstart the db partition is tiny (64mb) which is why it wasn't obvious this was working.

@liupan1111
Copy link
Contributor

@liewegas , our QA also finds this issue, thanks for the fix!

@liewegas liewegas merged commit b88b29e into ceph:master Jan 27, 2017
@liewegas liewegas deleted the wip-bluestore-statfs branch January 27, 2017 21:37
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.

3 participants