Hello Sage,
Thank you, I will do something like this :
$ rados -p rbd ls | grep '^rbd_data.24bb2ae8944a.' | xargs -n 100 rados
-p rbd rm
Laurent
Le 11/09/2013 17:37, Sage Weil a écrit :
On Wed, 11 Sep 2013, Laurent Barbe wrote:
Hello,
I deleted rbd images in format 2 but it seems to remain rbd_data objects :
$ rados -p datashare ls | grep rbd_data | wc -l
1479669
$ rados -p datashare ls | grep rbd_header | wc -l
0
$ rados -p datashare ls | grep rbd_id | wc -l
0
Does anyone know when rbd_data object must be destroyed ?
In this pool I keep rbd image in format 1 but I think they do not use objects
called "rbd_data*" and there should not be any format 2 images.
It's seems these images have been used with a buggy rc kernel (corrected by
this patch :
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=3a96d5cd7bdce45d5dded75c3a62d4fb98050280
)
and I notice that the name suffix size is only 12 characters :
rbd_data.11ae2ae8944a.00000000d3b2
rbd_data.11292ae8944a.000000090f98
rbd_data.11292ae8944a.0000000814bc
rbd_data.11292ae8944a.000000020c81
Is it possible that these objects are not deleted when I make rbd rm ?
I guess there any hope for these crumbs disappear by themselves ?
That explains it. They won't go away by themselves. You can clean them
up manually by grepping them out of rados ls and deleting them with rados
rm. Try to pass several names to each instantiation of the command or the
startup/shutdown will make things really slow.
sage
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com