From: Neil Brown <neilb@suse.de>
To: Doug Ledford <dledford@redhat.com>
Cc: LinuxRaid RAID <linux-raid@vger.kernel.org>
Subject: Re: mdadm udev rules change
Date: Fri, 10 Apr 2009 19:22:38 +1000 [thread overview]
Message-ID: <18911.4062.64497.82446@notabene.brown> (raw)
In-Reply-To: message from Doug Ledford on Thursday April 9
On Thursday April 9, dledford@redhat.com wrote:
> On Apr 8, 2009, at 3:31 AM, Neil Brown wrote:
> >
> > And you are saying that if we uncomment the "#ENV{...." line, then we
> > only want it to fire on add devices. So something like:
> >
> > ....
> > ACTION!="add|change", GOTO="md_end"
> > +ACTION=="change", GOTO="no_incr"
> >
> > # import data from a raid member and activate it
> > #ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm
> > --examine --export $tempnode", RUN+="/sbin/mdadm --incremental
> > $env{DEVNAME}"
> > # import data from a raid set
> > +LABEL="no_incr"
> > KERNEL!="md*", GOTO="md_end"
> > ......
> >
> > Is that correct?
> >
> > Your explanation certainly seems reasonable.
>
> As I was reading through this, I certainly thought the above
> implementation was reasonable, and then I got this new bug report:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=495034
I'm guessing this bug is because the line
TEST!="md/array_state", GOTO="md_end"
is missing from the udev rules file?? It is a relatively recent
addition.
>
> I would do some investigation on your own machines, but given udev
> change semantics, I think the proper course of action is simply to not
> watch changes.
We absolutely have to watch change events on md devices.
When the "new" event happens, the array doesn't exist yet. We have
just started building it. Once it is fully assembled and started a
change event happens and it is on that event that we create /dev
files, look for partitions, and mount filesystems.
NeilBrown
prev parent reply other threads:[~2009-04-10 9:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-06 14:57 mdadm udev rules change Doug Ledford
2009-04-08 7:31 ` Neil Brown
2009-04-09 19:20 ` Doug Ledford
2009-04-10 9:22 ` Neil Brown [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=18911.4062.64497.82446@notabene.brown \
--to=neilb@suse.de \
--cc=dledford@redhat.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).