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

Re: [dm-devel] a question about multipathd and udev

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):


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

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