Re: Remove RBD Image

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

 



Hi Ilya,

that worked for me and actually pointed out that one of my collegues
currently had the rbd pool locally mounted via fuse-rbd, which obviously
locks all images in this pool. Problem solved! Thanks!

Regards,
Christian

Am 29.07.2015 um 11:48 schrieb Ilya Dryomov:
> On Wed, Jul 29, 2015 at 11:30 AM, Christian Eichelmann
> <christian.eichelmann@xxxxxxxx> wrote:
>> Hi all,
>>
>> I am trying to remove several rbd images from the cluster.
>> Unfortunately, that doesn't work:
>>
>> $ rbd info foo
>> rbd image 'foo':
>>         size 1024 GB in 262144 objects
>>         order 22 (4096 kB objects)
>>         block_name_prefix: rb.0.919443.238e1f29
>>         format: 1
>>
>>
>> $ rbd rm foo
>> 2015-07-29 10:25:01.438296 7f868d330760 -1 librbd: image has watchers -
>> not removing
>> Removing image: 0% complete...failed.
>> 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.
>>
>> $ rados -p rbd listwatchers foo
>> error listing watchers rbd/foo: (2) No such file or directory
> 
> For a format 1 image, you need to do
> 
> $ rados -p rbd listwatchers foo.rbd
> 
> "rbd status" command was recently introduced to abstract this, but it's
> not in 0.87.
> 
>>
>> Well, that is quite frustrating. The image was mapped on one host, where
>> I was unmapping it. What do I have to do to get rid of it?
> 
> Did you unmap the image?  What is the output of "rbd showmapped" on the
> host you had it mapped?  Is there anything rbd or ceph related in dmesg on
> that host?
> 
> Thanks,
> 
>                 Ilya
> 


-- 
Christian Eichelmann
Systemadministrator

1&1 Internet AG - IT Operations Mail & Media Advertising & Targeting
Brauerstraße 48 · DE-76135 Karlsruhe
Telefon: +49 721 91374-8026
christian.eichelmann@xxxxxxxx

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert
Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
_______________________________________________
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