Re: LibRBD_Show Real Size of RBD Image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The rbd CLI has a built-in disk usage command with the Jewel release
that no longer requires the awk example. If you wanted to implement
something similar using the Python API, you would need to use the
"diff_iterate" API method to locate all used extents within an object
and add them up to calculate the total. I would suggest setting the
"whole_object" parameter to true since if the fast-diff feature is
enabled, you will be able to calculate the size a lot faster for large
images.

On Tue, Nov 29, 2016 at 3:09 AM, Sam Huracan <nowitzki.sammy@xxxxxxxxx> wrote:
> Hi all,
> I'm trying to use LIBRBD (Python)
> http://docs.ceph.com/docs/jewel/rbd/librbdpy/
>
> Is there a way to find real size of RBD Image through LIBRBD??
>
> I saw I can get it by CMD:
> http://ceph.com/planet/real-size-of-a-ceph-rbd-image/
>
> Thanks
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>



-- 
Jason
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux