Re: Safe to use rados -p rbd cleanup?

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

 




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
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux