All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Prantis, Kelsey" <kelsey.prantis@intel.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"Murrell, Brian" <brian.murrell@intel.com>
Subject: Re: "No such device" error when mounting immediately after formatting
Date: Mon, 7 Oct 2013 19:41:37 +0000	[thread overview]
Message-ID: <CE786739.62E4%kelsey.prantis@intel.com> (raw)
In-Reply-To: <20130912075818.GB1965@stefanha-thinkpad.redhat.com>

>I wonder if the output of "udevadm monitor" during the mfks and mount
>steps shows devices appearing/disappearing?  That might explain a race
>condition.

So sorry for the long delay in response, but the results of the "udevadm
monitor" gave me a new lead that led to solving the problem (which I will
discuss below).


>At which point in the boot process does your script run?

Our script does not run as part of the boot process. It is just formatting
and mounting the devices to write repeatedly well after boot.

The Solution:
------------------------
The key bit of information I think we were missing before is that the
formatting and mounting were occurring in parallel for multiple devices
attached to the node. When looking at the "udevadm monitor" results it
brought to my attention that it was having to load a module in response to
the mount command, and I wondered if there could be a race with two
parallel mount commands that ask for the same module to be loaded.

Turns out, that was a known kernel bug, which was fixed in kernel 3.7.0,
and has nothing to do with kvm:
    - Original ticket here:
https://bugzilla.redhat.com/show_bug.cgi?id=771285
    - Patch submitted here:
http://thread.gmane.org/gmane.linux.kernel/1358707/focus=1358709

I've filed a ticket with RedHat to request the fix be back ported to the
REHL6 kernel here:  https://bugzilla.redhat.com/show_bug.cgi?id=1009704

Until then, I found the simplest workaround was to explicitly load the
module (ex: "modprobe ext4"), prior to beginning the formatting and
mounting process.

Sorry to bug you guys with a unrelated issue, but hopefully this
explanation can help anyone else who stumbles into the problem.

Regards,
Kelsey


      reply	other threads:[~2013-10-07 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CE549F34.4ABB%kelsey.prantis@intel.com>
2013-09-10 16:39 ` "No such device" error when mounting immediately after formatting Prantis, Kelsey
2013-09-12  7:58   ` Stefan Hajnoczi
2013-10-07 19:41     ` Prantis, Kelsey [this message]

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=CE786739.62E4%kelsey.prantis@intel.com \
    --to=kelsey.prantis@intel.com \
    --cc=brian.murrell@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=stefanha@gmail.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.