From: Konrad Rzeszutek <konrad@virtualiron.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: a question about multipathd and udev
Date: Tue, 21 Oct 2008 09:40:01 -0400 [thread overview]
Message-ID: <20081021134001.GA13698@mars.virtualiron.com> (raw)
In-Reply-To: <48FD900D.2010709@redhat.com>
On Tue, Oct 21, 2008 at 04:17:17PM +0800, dwu wrote:
> If a block device is added, the udev will run the command multipath to add
> the path to the mp if possible.
That depends on your distro. Some of the udev rules do not call the multipath
program but instead pass on the uevent to a netlink socket:
(look for 96-multipath-late.rules):
RUN+="socket:/org/kernel/dm/multipath_event"
and let the multipathd handle the uevent.
> Why multipathd also process a path addition event:
> (!strncmp(uev->action, "add", 3)) {
> r = uev_add_path(devname, vecs);
Take a look at the logic of the uev_add_path. It extracts the block device name
and figures out to what multipath map this device belongs too, runs the appropiate
path checker, and lastly updates (or creates) the device mapper map with the right major:minor,
weights, etc.
> goto out;
> }
>
> Thanks.
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
prev parent reply other threads:[~2008-10-21 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 8:17 a question about multipathd and udev dwu
2008-10-21 13:40 ` Konrad Rzeszutek [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=20081021134001.GA13698@mars.virtualiron.com \
--to=konrad@virtualiron.com \
--cc=dm-devel@redhat.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.