Re: Command to check last change to rbd image?

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

 



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.

Paul
Am So., 28. Okt. 2018 um 13:38 Uhr schrieb Kevin Olbrich <ko@xxxxxxx>:
>
> 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@xxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




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


  Powered by Linux