Comment 12 for bug 833891

Revision history for this message
Kees Cook (kees) wrote : Re: [Bug 833891] Re: lvscan often times out during boot

On Fri, Sep 23, 2011 at 11:23:33PM -0000, Serge Hallyn wrote:
> Does that make any sense? It might mess up the use off watershed
> though.

watershed is there to keep multiple invocations of effectively the same
event in check. For example, each time a pv appears, we attempt to activate
all VGs. But if all the drives suddenly appear at once, we only need
to attempt the activation once. (See the extensive comments at the start of
watershed.c in the watershed package.)

It might be interesting to see if races are solved (or introduced) by
having watershed itself offer a "daemonize" option to put itself in the
background and immediately return to the caller (udev). This may solve it.

On the other hand, perhaps the solution is to fix up the udev rule to only
apply to PVs, and nothing else, as it certainly wasn't designed to run when
creating an LV.