Thanks for the suggestions, and will future check for LVM volumes,
etc... the kernel version is the following 3.10.0-327.4.4.el7.x86_64
and the OS is CentOS 7.2.1511 (Core)


Best,
Martin
On Mon, Sep 10, 2018 at 12:23 PM Ilya Dryomov <idryo...@gmail.com> wrote:
>
> On Mon, Sep 10, 2018 at 10:46 AM Martin Palma <mar...@palma.bz> wrote:
> >
> > We are trying to unmap an rbd image form a host for deletion and
> > hitting the following error:
> >
> > rbd: sysfs write failed
> > rbd: unmap failed: (16) Device or resource busy
> >
> > We used commands like "lsof" and "fuser" but nothing is reported to
> > use the device. Also checked for watcher with "rados -p pool
> > listwatchers image.rbd" but there aren't any listed.
>
> The device is still open by someone.  Check for LVM volumes, multipath,
> loop devices etc.  None of those typically show up in lsof.
>
> >
> > By investigating `/sys/kernel/debug/ceph/<cluster-id>/osdc` we get:
> >
> > 160460241    osd150    19.b2af34    image.rbd
> > 231954'1271503593144320    watch
>
> Which kernel is that?
>
> >
> > Our goal is to unmap the image for deletion so if the unmap process
> > should destroy the image is for us OK.
> >
> > Any help/suggestions?
>
> On newer kernels you could do "rbd umap -o force <device>", but it
> looks like you are running an older kernel.
>
> Thanks,
>
>                 Ilya
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to