This doesn't work for me: for i in `radosgw-admin bucket list`; do radosgw-admin bucket unlink --bucket=$i --uid=myuser; done (tried with and without '=')
Errors for each bucket: failure: (2) No such file or directory2018-04-16 15:37:54.022423 7f7c250fbc80 0 could not get bucket info for bucket="bucket5", On Mon, Apr 16, 2018 at 8:30 AM, Casey Bodley <cbod...@redhat.com> wrote: > > > On 04/14/2018 12:54 PM, Robert Stanford wrote: > > > I deleted my default.rgw.buckets.data and default.rgw.buckets.index pools > in an attempt to clean them out. I brought this up on the list and > received replies telling me essentially, "You shouldn't do that." There > was however no helpful advice on recovering. > > When I run 'radosgw-admin bucket list' I get a list of all my old buckets > (I thought they'd be cleaned out when I deleted and recreated > default.rgw.buckets.index, but I was wrong.) Deleting them with s3cmd and > radosgw-admin does nothing; they still appear (though s3cmd will give a > '404' error.) Running radosgw-admin with 'bucket check' and '--fix' does > nothing as well. So, how do I get myself out of this mess. > > On another, semi-related note, I've been deleting (existing) buckets and > their contents with s3cmd (and --recursive); the space is never freed from > ceph and the bucket still appears in s3cmd ls. Looks like my radosgw has > several issues, maybe all related to deleting and recreating the pools. > > Thanks > > > _______________________________________________ > ceph-users mailing > listceph-us...@lists.ceph.comhttp://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > > The 'bucket list' command takes a user and prints the list of buckets they > own - this list is read from the user object itself. You can remove these > entries with the 'bucket unlink' command. > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com