Bug #23127
closed"rbd du" command is not showing the proper used space of RBD
0%
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