Re: [ceph-users] rados rm: device or resource busy

2017-06-11 Thread Richard Arends
On 06/09/2017 10:47 AM, Jan Kasprzak wrote: All, This is where i wrote https://github.com/Mosibi/ceph_stripe_fixer for. With regards, Richard. Hello, Brad Hubbard wrote: : I can reproduce this. [...] : That's here where you will notice it is returning EBUSY which is error : code 16,

Re: [ceph-users] rados rm: device or resource busy

2017-06-09 Thread Jan Kasprzak
Hello, Brad Hubbard wrote: : I can reproduce this. [...] : That's here where you will notice it is returning EBUSY which is error : code 16, "Device or resource busy". : : https://github.com/badone/ceph/blob/wip-ceph_test_admin_socket_output/src/cls/lock/cls_lock.cc#L189 : : In order t

Re: [ceph-users] rados rm: device or resource busy

2017-06-08 Thread Brad Hubbard
I can reproduce this. The key is to look at debug logging on the primary. 2017-06-09 09:30:14.776355 7f9cf26a4700 20 /home/brad/working/src/ceph3/src/cls/lock/cls_lock.cc:247: lock_op 2017-06-09 09:30:14.776359 7f9cf26a4700 20 /home/brad/working/src/ceph3/src/cls/lock/cls_lock.cc:162: requested

Re: [ceph-users] rados rm: device or resource busy

2017-06-08 Thread Jan Kasprzak
Hello, David Turner wrote: : How long have you waited? About a day. : I don't do much with rados objects directly. I usually use RBDs and : cephfs. If you just need to clean things up, you can delete the pool and : recreate it since it looks like it's testing. However this is

Re: [ceph-users] rados rm: device or resource busy

2017-06-08 Thread David Turner
How long have you waited? Watchers of objects in ceph time out after a while and you should be able to delete it. I'm talking around the range of 30 minutes, so it's likely this isn't the problem if you've been wrestling with it long enough to write in about. I don't do much with rados objects di

[ceph-users] rados rm: device or resource busy

2017-06-08 Thread Jan Kasprzak
Hello, I have created a RADOS striped object using $ dd someargs | rados --pool testpool --striper put testfile - and interrupted it in the middle of writing. Now I cannot remove this object: $ rados --pool testpool --striper rm testfile error removing testpool>testfile: (16) Device or