xenial lvm2-monitor.service fails with lvm raid1 volumes

Bug #1556451 reported by Tero Marttila on 2016-03-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Undecided
Unassigned

Bug Description

After installing xenial using the daily ubuntu-server installer, creating an LVM volume for the root filesystem, I lvconverted it into a raid1 mirror for redundancy over the pair of SSDs installed (as separate LVM PVs):

    sudo lvconvert -m 1 --type raid1 bonk/bonk1 /dev/sdc1 /dev/sdd1

After a reboot, the lvm2-monitor.service fails. Relevant lines from journalctl:

 $ sudo journalctl | grep -iE '(lvm|dmeventd)'
 Mar 12 19:32:48 bonk1 systemd[1]: Listening on LVM2 metadata daemon socket.
 Mar 12 19:32:48 bonk1 systemd[1]: Listening on LVM2 poll daemon socket.
 Mar 12 19:32:48 bonk1 systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
 Mar 12 19:32:49 bonk1 systemd[1]: Started LVM2 metadata daemon.
 Mar 12 19:32:52 bonk1 dmeventd[1039]: dmeventd libdevmapper-event-lvm2raid.so dlopen failed: libdevmapper-event-lvm2raid.so: cannot open shared object file: No such file or directory.
 Mar 12 19:32:52 bonk1 dmeventd[1039]: dmeventd libdevmapper-event-lvm2raid.so dlopen failed: libdevmapper-event-lvm2raid.so: cannot open shared object file: No such file or directory.
 Mar 12 19:32:52 bonk1 dmeventd[1039]: dmeventd libdevmapper-event-lvm2raid.so dlopen failed: libdevmapper-event-lvm2raid.so: cannot open shared object file: No such file or directory.
 Mar 12 19:32:59 bonk1 lvm[556]: Monitoring bonk/bonk1 failed.
 Mar 12 19:32:59 bonk1 lvm[556]: 4 logical volume(s) in volume group "bonk" monitored
 Mar 12 19:32:59 bonk1 systemd[1]: lvm2-monitor.service: Main process exited, code=exited, status=5/NOTINSTALLED
 Mar 12 19:32:59 bonk1 systemd[1]: Failed to start Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
 Mar 12 19:32:59 bonk1 systemd[1]: lvm2-monitor.service: Unit entered failed state.
 Mar 12 19:32:59 bonk1 systemd[1]: lvm2-monitor.service: Failed with result 'exit-code'.
 Mar 12 19:33:00 bonk1 dmeventd[1039]: dmeventd libdevmapper-event-lvm2raid.so dlopen failed: libdevmapper-event-lvm2raid.so: cannot open shared object file: No
such file or directory.
 Mar 12 19:33:08 bonk1 systemd-udevd[662]: Process 'watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'' failed with exit code 5.
 Mar 12 19:33:08 bonk1 dmeventd[1039]: dmeventd libdevmapper-event-lvm2raid.so dlopen failed: libdevmapper-event-lvm2raid.so: cannot open shared object file: No such file or directory.
 Mar 12 19:33:16 bonk1 systemd-udevd[655]: Process 'watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'' failed with exit code 5.

The .so file is present and installed as part of dmeventd:

 $ dpkg -S libdevmapper-event-lvm2raid.so
 dmeventd: /lib/x86_64-linux-gnu/device-mapper/libdevmapper-event-lvm2raid.so

This may be related to Debian's lvm2 2.02.133-2 change:

    * Drop event plugin directory move. This moves the plugins back into
     the main library path. (closes: #807279)

See:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807279

---
$ apt-cache policy lvm2 dmeventd
lvm2:
  Installed: 2.02.133-1ubuntu7
  Candidate: 2.02.133-1ubuntu7
  Version table:
 *** 2.02.133-1ubuntu7 500
 500 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
 100 /var/lib/dpkg/status
dmeventd:
  Installed: 2:1.02.110-1ubuntu7
  Candidate: 2:1.02.110-1ubuntu7
  Version table:
 *** 2:1.02.110-1ubuntu7 500
 500 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
 100 /var/lib/dpkg/status

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lvm2 - 2.02.133-1ubuntu10

---------------
lvm2 (2.02.133-1ubuntu10) xenial; urgency=medium

  * Cherry-pick change from lvm2 2.02.133-2 in Debian to move event plugins
    back onto the main library patch, which fixes problems with monitoring
    failing for snapshots and raid volumes. Closes: #807279, LP: #1556451,
    LP: #1561228.

 -- Steve Langasek <email address hidden> Sat, 16 Apr 2016 00:06:53 -0700

Changed in lvm2 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers