On Wed, Dec 21, 2016 at 10:33 PM, Jason Dillaman <jdill...@redhat.com> wrote:
> [moving to ceph-users ...]
>
> You should be able to use the rados CLI to list all the objects in
> your pool, excluding all objects associated with known, valid image
> ids:
>
> rados ls -p rbd | grep -vE "($(rados -p rbd ls | grep rbd_header |
> grep -o "\.[0-9a-f]*" | sed -e :a -e '$!N; s/\n/|/; ta' -e
> 's/\./\\./g'))" | grep -E '(rbd_data|journal|rbd_object_map)'
>
> Once you tweak / verify the list, you can pipe it to the rados rm command.

Perfect, thanks Jason!
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to