Re: a question about multipathd and udev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux