[ceph-users] Command to check last change to rbd image?
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
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>:
> 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
> ceph-users mailing list
> ceph-users at lists.ceph.com
Looking for help with your Ceph cluster? Contact us at https://croit.io
Tel: +49 89 1896585 90
More information about the ceph-users