[ceph-users] Command to check last change to rbd image?

Paul Emmerich paul.emmerich at croit.io
Sun Oct 28 07:44:38 PDT 2018

The only way to check this is to check each individual object the RBD
consists of:

rbd info <pool>/<image>
-->     block_name_prefix: rbd_data.XXXXXXXXXX

rados -p rbd stat rbd_data.XXXXXXXXX.0000000000000000
rados -p rbd stat rbd_data.XXXXXXXXX.0000000000000001
rados -p rbd stat rbd_data.XXXXXXXXX.0000000000000002

By default you will have up to size/4MB number of objects (with holes
in between as RBDs are sparse)

It is probably possible to somehow get the objects that are actually
in use when the image has the object-map feature to avoid having to
brute-force all the objects.

Am So., 28. Okt. 2018 um 13:38 Uhr schrieb Kevin Olbrich <ko at sv01.de>:
> Hi!
> Is there an easy way to check when an image was last modified?
> I want to make sure, that the images I want to clean up, were not used for a long time.
> Kind regards
> Kevin
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Paul Emmerich

Looking for help with your Ceph cluster? Contact us at https://croit.io

croit GmbH
Freseniusstr. 31h
81247 München
Tel: +49 89 1896585 90

More information about the ceph-users mailing list