This feature is forthcoming with the Nautilus release of Ceph:
$ rbd info image1
rbd image 'image1':
size 1 GiB in 256 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 101f86439b20
block_name_prefix: rbd_data.101f86439b20
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
op_features:
flags:
create_timestamp: Sun Oct 28 16:53:47 2018
access_timestamp: Sun Oct 28 16:54:52 2018
modify_timestamp: Sun Oct 28 16:55:09 2018
On Sun, Oct 28, 2018 at 10:45 AM Paul Emmerich wrote:
>
> The only way to check this is to check each individual object the RBD
> consists of:
>
> rbd info /
> --> block_name_prefix: rbd_data.XX
>
> rados -p rbd stat rbd_data.X.
> rados -p rbd stat rbd_data.X.0001
> rados -p rbd stat rbd_data.X.0002
> ...
>
> 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.
>
> Paul
> Am So., 28. Okt. 2018 um 13:38 Uhr schrieb Kevin Olbrich :
> >
> > 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@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
> www.croit.io
> Tel: +49 89 1896585 90
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
--
Jason
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com