Re: Remove RBD Image

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

 



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
_______________________________________________
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