Bug#791869: lvm2: updating src:lvm2 from 2.02.111-2.2 to 2.02.122-1 breaks booting, mounting LVs other than / fails

Michael Biebl biebl at debian.org
Mon Jul 27 15:40:39 UTC 2015


Am 27.07.2015 um 07:56 schrieb Bastian Blank:
> On Sun, Jul 26, 2015 at 12:24:43AM +0200, Michael Biebl wrote:
>> Fwiw, I could easily and reliably reproduce this problem in a VM with
>> LVM (guided setup with separate /, /home, /tmp, /var) on top of mdadm
>> RAID1 with a minimal standard installation.
> 
> There are at least two distinct problems.  The cause for the
> reproducible problem with MD is known.  No cause is known for
> the more random blockage.

It looks like [1] is another duplicate of this bug.

>> I see you already got the information you requested from Stefan, I can
>> provide further diagnostics as well, if you want me to.
> 
> If you have a more or less reproducible _non_-MD case, then I could use
> this information.

I tried to make lvmetad work a while ago and ran into [2] and [3].
Looking at /lib/udev/rules.d/69-lvm-metad.rules and rules/Makefile.in of
the current package, it looks like lvm2 was not compiled with
UDEV_SYSTEMD_BACKGROUND_JOBS = yes. The 69-lvm-metad.rules file on amd64 has
RUN+="/sbin/lvm pvscan --background --cache --activate ay --major $major
--minor $minor", ENV{LVM_SCANNED}="1"


udev under systemd doesn't allow long running processes which background
to be started from udev rules, such processes are killed by udevd [4].
Not sure if that is happening here. But fixing [2] and making sure
pvscan is run via /bin/systemd-run look like should be done in any case.

Michael



[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774082
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783182
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783120
[4] http://www.freedesktop.org/software/systemd/man/udev.html#RUN{type}
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20150727/cb906e3f/attachment.sig>


More information about the pkg-lvm-maintainers mailing list