On 07/15/2018 11:12 AM, Mehmet wrote:
> hello guys,
>
> in my production cluster i've many objects like this
>
> "#> rados -p rbd ls | grep 'benchmark'"
> ... .. .
> benchmark_data_inkscope.example.net_32654_object1918
> benchmark_data_server_26414_object1990
> ... .. .
>
> Is it safe to run "rados -p rbd cleanup" or is there any risk for my
> images?
the cleanup will require more then just that as you will need to specify
the benchmark prefix as well.
Why not run:
$ rados -p rbd ls > ls.txt
$ cat ls.txt|grep 'benchmark_data'|xargs -n 1 rados -p rbd rm
That should remove those objects as well. That's how I usually do it.
Wido
> _______________________________________________
> ceph-users mailing list
> [email protected]
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com