[ceph-users] Real disk usage of clone images

Jason Dillaman jdillama at redhat.com
Sat Oct 7 04:22:33 PDT 2017


The "rbd du" command will calculate how much space a clone is using,
as well as individual snapshots.

$ rbd du my-pool
NAME     PROVISIONED  USED
clone at 1          10G  512M
clone at 2          10G   64M
clone            10G  512M
parent at 1         10G    1G
parent           10G     0
<TOTAL>          20G 2.06G

On Sat, Oct 7, 2017 at 3:33 AM, Josy <josy at colossuscloudtech.com> wrote:
> Hi,
>
> Not sure if this is a good/valid question.
>
> I have deployed a lot of VMs in a ceph cluster that were cloned from an
> original rbd image.
> I want to see how much of the original image is a new VM (cloned image)
> using. Is there any command to get such details?
>
> ==================
>
> $ rbd info cvm/f6d058e73ab4a0e1262b3140731b4980-1
> rbd image 'f6d058e73ab4a0e1262b3140731b4980-1':
>         size 61440 MB in 15360 objects
>         order 22 (4096 kB objects)
>         block_name_prefix: rbd_data.a2f03d1b58ba
>         format: 2
>         features: layering
>         flags:
>         create_timestamp: Fri Oct  6 19:20:53 2017
>         parent:
> ostemplates/windows-81-x64-20171004 at snap_windows-81-x64-20171004
>         overlap: 50000 MB
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



-- 
Jason


More information about the ceph-users mailing list