[Bug 833891] Re: lvscan often times out during boot

Serge Hallyn 833891 at bugs.launchpad.net
Sat Sep 24 16:19:03 UTC 2011


Quoting Kees Cook (kees at ubuntu.com):
> 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.

I'll try that out second, but

> 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.

Ah, thanks, I didn't realize that.  I can try that out.

thanks,
-serge

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/833891

Title:
  lvscan often times out during boot

Status in “udev” package in Ubuntu:
  Confirmed

Bug description:
  I'm not 100% certain that mountall is the problem, but seems a good
  place to start.

  I have some LVM partitions on my laptop, and some filesystems on there
  are mounted through fstab:

  /dev/schroots/schroots /srv/devel ext3 defaults,relatime 0 0
  /dev/schroots/isos /iso ext4 defaults,relatime 0 0

  Often (1/3 of the time?) boot hangs, and after a minute or so I get a
  message saying something about watershed and lvscan timing out.  Then
  it proceeds to mount everything readonly.

  Other times boot proceeds with no problem.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: mountall 2.31
  ProcVersionSignature: Ubuntu 3.0.0-9.12-generic 3.0.3
  Uname: Linux 3.0.0-9-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Thu Aug 25 10:56:52 2011
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110627.1)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: mountall
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/833891/+subscriptions




More information about the foundations-bugs mailing list