From: NeilBrown <neilb@suse.de>
To: "Wojcik, Krzysztof" <krzysztof.wojcik@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Single-drive RAID0
Date: Wed, 16 Feb 2011 11:42:34 +1100 [thread overview]
Message-ID: <20110216114234.0311d27b@notabene.brown> (raw)
In-Reply-To: <BE2BFE91933D1B4089447C644860408068FB347B@irsmsx503.ger.corp.intel.com>
On Tue, 15 Feb 2011 16:30:05 +0000 "Wojcik, Krzysztof"
<krzysztof.wojcik@intel.com> wrote:
> > It might help to put a "WARN_ON(1)" in the place where it prints
> > "detected
> > capacity change ..." so we get a stack trace and can see how it got
> > there.
> > That might git a hint to what is looping.
> > Also a printk in md_open if it returns ERESTARTSYS would be
> > interesting.
>
> In attachment part of logs from kernel with WARN_ON(1) and value returned by md_open()
> (line preceded with "##### KW: err= x").
>
> I am trying to look for in new areas. I've run:
> Udevd --debug --dedug-traces
>
> Logs from udev and kernel in attachment.
> Maybe it will help to find solution...
> It seems to udev adds and removes device in loop...
Thanks for the extra logs.... it helps a bit, but I'm not a lot closer.
I've seen something a little bit like this which was fixed by adding
TEST!="md/array_state", GOTO="md_end"
just after
# container devices have a metadata version of e.g. 'external:ddf' and
# never leave state 'inactive'
in /lib/udev/rules.d/64-md-raid.rules
Could you try that??
It looks like the 'bdev' passed to md_open keeps changing, which it shouldn't.
If the above doesn't help, please add:
printk("bdev=%p, mddev=%p, disk=%p dev=%x\n", bdev, mddev, mddev->gendisk, bdev->bd_dev);
at the top of 'md_open', and see what it produces.
Thanks,
NeilBrown
next prev parent reply other threads:[~2011-02-16 0:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 16:15 Single-drive RAID0 Wojcik, Krzysztof
2011-02-09 2:45 ` NeilBrown
2011-02-09 14:33 ` Wojcik, Krzysztof
2011-02-14 2:11 ` NeilBrown
2011-02-14 17:04 ` Wojcik, Krzysztof
2011-02-15 0:01 ` NeilBrown
2011-02-15 16:30 ` Wojcik, Krzysztof
2011-02-16 0:42 ` NeilBrown [this message]
2011-02-16 16:57 ` Wojcik, Krzysztof
2011-02-17 0:38 ` NeilBrown
2011-02-21 2:15 ` NeilBrown
2011-02-21 14:11 ` Wojcik, Krzysztof
2011-02-22 0:50 ` NeilBrown
2011-02-22 11:50 ` Wojcik, Krzysztof
2011-02-22 16:42 ` Jan Ceuleers
2011-02-23 2:20 ` NeilBrown
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=20110216114234.0311d27b@notabene.brown \
--to=neilb@suse.de \
--cc=krzysztof.wojcik@intel.com \
--cc=linux-raid@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).