Deleting an image after a crash

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

 



During on of tests, my test client painfully crashed with a couple of mapped images. When it came back online I have not been able to rm formerly mapped images as watchers were still registered.

 Host A > rbd create test-image --size 10240
 Host A > rbd map test-image
 # <terrible crash followed by hard reboot>
 # after some time > 30sec Host A is back online
 Host A > rbd rm test-image

# > Removing image: 99% complete...failed.2014-01-30 17:07:37.607497 # > 7f26468b3760 -1 librbd: error removing header: (16) Device or resource busy
 # >
 # > rbd: error: image still has watchers
# > This means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.



And indeed I do have registered watcher:

 Host A > rados listwatchers --pool rbd test-image.rbd
watcher=1.2.3.4:0/4224017245 client.15347 cookie=110
 # Hey, this is *my* ip address !

But

 Host A > rbd showmapped
 # Nothing here

Is there anything I can do to fix this situation (cleanly) ?

--
Jean-Tiare, shared-hosting team

_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux