Bug#751392: lvm2-activation-early breaks because of run-lock.mount

Petr Čech cech at debian.org
Thu Jun 12 12:06:54 UTC 2014


Package: lvm2
Version: 2.02.106-2
Severity: important

Hi,
I've noticed that lvm2-activation-early.service fails to start with following message:

Jun 12 09:38:24 flora lvm[403]: /run/lock/lvm/V_flora_md0:aux: open failed: No such file or directory
Jun 12 09:38:24 flora lvm[403]: Can't get lock for flora_md0
Jun 12 09:38:24 flora lvm[403]: Skipping volume group flora_md0
Jun 12 09:38:24 flora systemd[1]: lvm2-activation-early.service: main process exited, code=exited, status=5/NOTINSSTALLED

The reason seems to be, that run-lock.mount runs after lvm2-activation-early.service
and the file and directory disappear.

The following (untested) patch should solve it.

--- /lib/systemd/system/lvm2-activation-early.service   2014-06-09 21:54:21.000000000 +0200
+++ lvm2-activation-early.service       2014-06-12 14:00:22.354476519 +0200
@@ -2,9 +2,9 @@
 Description=Activation of LVM2 logical volumes
 Documentation=man:lvm(8) man:vgchange(8)
 DefaultDependencies=no
-After=systemd-udev-settle.service
+After=systemd-udev-settle.service run-lock.mount
 Before=cryptsetup.target local-fs.target shutdown.target
-Wants=systemd-udev-settle.service
+Wants=systemd-udev-settle.service run-lock.mount


Regards
Petr

-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (99, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                   2:1.02.85-2
ii  init-system-helpers       1.18
ii  initscripts               2.88dsf-55
ii  libc6                     2.19-1
ii  libdevmapper-event1.02.1  2:1.02.85-2
ii  libdevmapper1.02.1        2:1.02.85-2
ii  libreadline5              5.2+dfsg-2
ii  libudev1                  208-1
ii  lsb-base                  4.1+Debian13

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
pn  thin-provisioning-tools  <none>

-- no debconf information



More information about the pkg-lvm-maintainers mailing list