Project

General

Profile

Actions

Bug #23127

closed

"rbd du" command is not showing the proper used space of RBD

Added by Debashis Mondal about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Execution Steps:
-------------------
1. Create an provisioned image of size 20 GB # rbd create temp/myimage201 --size 20480
2. Check the disk uses by rbd commnad # rbd du temp/myimage201
3. Write actual data on the disk # rbd map temp/myimage201 # mkdir myimage201 # mkfs.ext4 -m0 /dev/rbd/temp/myimage201 # mount /dev/rbd/temp/myimage201 myimage201 # <copy 1 GB data in myimage201>
4. Chek the disk uses by rbd command # rbd du temp/myimage201
[Note: Reflected properly]
5. Delete some data from the image # rm <filename> myimage201
6. Check the disk uses by rbd command # rbd du temp/myimage201

Observation:
--------------
The " rbd du" command is not working as per expected.

When data is being added to "RBD image", then it shows the proper disk uses, but when any data is removed from "RBD image" then the disk usages stat is not being reflected in "rbd du" command output accordingly.

It does not show the proper disk used space if the disk uses is decreased .


Files

Logs.txt (3.05 KB) Logs.txt Debashis Mondal, 02/26/2018 04:22 AM
Actions #1

Updated by Jason Dillaman about 6 years ago

  • Status changed from New to Rejected

You would need to configure discard for the OS/filesystem to actually release space.

Actions

Also available in: Atom PDF