Thread (16 messages) 16 messages, 3 authors, 2011-02-23

RE: Single-drive RAID0

flat view

From: Wojcik, Krzysztof <hidden>
Date: 2011-02-16 16:57:06

-----Original Message-----
From: NeilBrown [mailto:neilb@suse.de]
Sent: Wednesday, February 16, 2011 1:43 AM
To: Wojcik, Krzysztof
Cc: linux-raid@vger.kernel.org
Subject: Re: Single-drive RAID0

On Tue, 15 Feb 2011 16:30:05 +0000 "Wojcik, Krzysztof"
[off-list ref] wrote:
quoted
quoted
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()
quoted
(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??
I tried. It not helps :(
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-
quoted
gendisk, bdev->bd_dev);
at the top of 'md_open', and see what it produces.
I tried this also but I can't see any useful information that can make me some idea.
Could you look at logs in attachment?

Regards
Krzysztof
Thanks,
NeilBrown
  

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help