All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Kirk Allan" <kallan@novell.com>
To: xen-devel@lists.xensource.com
Subject: losetup -d fails when domU is destroyed
Date: Mon, 08 May 2006 09:24:26 -0600	[thread overview]
Message-ID: <445F0E4A.39DB.0076.0@novell.com> (raw)

I do not see this happen very often, but every once in a while after a domU is destroyed the loop device is still in use.  From the /var/log/messages file I see:

May  8 08:54:00 kdell logger: /etc/xen/scripts/block: remove XENBUS_PATH=backend/vbd/3/768

In the xen-hotplug.log there is an entry
                             
ioctl: LOOP_CLR_FD: Device or resource busy

It appears that when the /etc/xen/scripts/block script goes to remove the device with the losetup -d “$node” that the device is still busy and the command fails.  But by the time you can enter losetup -d /dev/<loopdevice> from the command line, the device is no longer busy and the command succeeds.

As a test I modified the /etc/xen/scripts/block script to sleep 1 and try the losetup -d again if the first try failed.  After many attempts to cause the problem, it finally happened.  The first losetup -d failed and the second succeeded.  Although this worked, it doesn't seem to be the correct solution to the underlying problem.  Any help or guidance would greatly be appreciated.

Thanks,
Kirk

             reply	other threads:[~2006-05-08 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-08 15:24 Kirk Allan [this message]
2006-05-08 15:50 ` losetup -d fails when domU is destroyed Ewan Mellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=445F0E4A.39DB.0076.0@novell.com \
    --to=kallan@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.