Description of problem: A new "rbd sparsify <image-spec>" command is available which will scan the image for chunks of zeroed data blocks and will deallocate the corresponding space from the backing RADOS data objects. This works over both replicated and EC pools and should be compatible with krbd if the exclusive-lock feature is not enabled. Version-Release number of selected component (if applicable): RHCS 5.0 [1] https://trello.com/c/QVimN8qS
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
working as expected. Moving to verified state. steps: 1. create pool and image 2. write zeroed blocks 3. rbd du --exact <image-spec> to check the size before running sparsify 4. rbd sparsify <image-spec> 5. rbd du --exact <image-spec> to check the size after running sparsify
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294