Skip to content
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

rbd: pool_percent_used should not divided by 100 #20795

Merged
merged 1 commit into from Mar 8, 2018

Conversation

Projects
None yet
2 participants
@Songweibin
Copy link
Contributor

commented Mar 8, 2018

root@s222:/ceph-dev/build# ceph df
GLOBAL:
    SIZE     AVAIL     RAW USED     %RAW USED 
     30G     24.0G        6.01G         20.05 
POOLS:
    NAME                  ID     USED      %USED     MAX AVAIL     OBJECTS 
    cephfs_data_a         1          0         0         7.90G           0 
    cephfs_metadata_a     2      2.19K         0         7.90G          21 
    rbd                   3      1.00G     11.24         7.90G         262 
root@s222:/ceph-dev/build# rbd trash purge --threshold 0.1     # 10%
rbd: pool usage is lower than or equal to 10%
Nothing to do

The actual pool usage of 'rbd' is 11.24%.

Signed-off-by: songweibin song.weibin@zte.com.cn

rbd: pool_percent_used should not divided by 100
The value of 'percent_used' in `ceph df --format=json`
has already been divided by 100.

Signed-off-by: songweibin <song.weibin@zte.com.cn>
@dillaman
Copy link
Contributor

left a comment

lgtm

@dillaman dillaman merged commit fd81fa7 into ceph:master Mar 8, 2018

5 checks passed

Docs: build check OK - docs built
Details
Signed-off-by all commits in this PR are signed
Details
Unmodified Submodules submodules for project are unmodified
Details
make check make check succeeded
Details
make check (arm64) make check succeeded
Details

@Songweibin Songweibin deleted the Songweibin:wip-fix-trash branch Mar 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.