Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 627701

Summary: Move liblvm2cmd.so from /usr/lib to /lib
Product: Red Hat Enterprise Linux 5 Reporter: Milan Broz <mbroz>
Component: lvm2Assignee: Milan Broz <mbroz>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: agk, dwysocha, heinzm, jbrassow, joe.thornber, mbroz, prajnoha, prockai, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.73-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 22:42:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Broz 2010-08-26 17:32:12 UTC
Description of problem:

Installed dmeventd plugins (in /lib) for lvm monitoring cannot run without liblvm2cmd which is installed in /usr/lib.

# rpm -ql lvm2 |grep lib
/lib64/libdevmapper-event-lvm2.so
/lib64/libdevmapper-event-lvm2.so.2.02
/lib64/libdevmapper-event-lvm2mirror.so
/lib64/libdevmapper-event-lvm2mirror.so.2.02
/lib64/libdevmapper-event-lvm2snapshot.so
/lib64/libdevmapper-event-lvm2snapshot.so.2.02
/usr/lib64/liblvm2cmd.a
/usr/lib64/liblvm2cmd.a.2.02
/usr/lib64/liblvm2cmd.so
/usr/lib64/liblvm2cmd.so.2.02

# ldd /lib64/libdevmapper-event-*.so |grep lvm2cmd
 liblvm2cmd.so.2.02 => /usr/lib64/liblvm2cmd.so.2.02 (0x00002b7eda425000)
 liblvm2cmd.so.2.02 => /usr/lib64/liblvm2cmd.so.2.02 (0x00002abe9da3b000)
 liblvm2cmd.so.2.02 => /usr/lib64/liblvm2cmd.so.2.02 (0x00002b86c928c000)

(Please note that dependence on other libraries in /usr is another bug - these are already fixed and covered by bug 627541)

Fedora and RHEL6 already have this in /lib...

This bug was introduced with dmeventd lvm2 plugin change to avoid paralell lvm2 commands run (in RHEL5.5 probably).

Version-Release number of selected component (if applicable):
lvm2-2.02.56-8.el5_5.6

Comment 1 Milan Broz 2010-08-30 10:39:38 UTC
Fix in lvm2-2.02.73-1.el5.

Comment 3 Corey Marthaler 2010-11-08 23:12:43 UTC
Fix verified in the latest rpms.

[root@taft-01 ~]# rpm -ql lvm2 |grep lib
/lib64/device-mapper/libdevmapper-event-lvm2mirror.so
/lib64/device-mapper/libdevmapper-event-lvm2snapshot.so
/lib64/libdevmapper-event-lvm2.so
/lib64/libdevmapper-event-lvm2.so.2.02
/lib64/libdevmapper-event-lvm2mirror.so
/lib64/libdevmapper-event-lvm2snapshot.so
/lib64/liblvm2cmd.a
/lib64/liblvm2cmd.so
/lib64/liblvm2cmd.so.2.02

[root@taft-01 ~]# ldd /lib64/libdevmapper-event-*.so |grep lvm2cmd
        liblvm2cmd.so.2.02 => /lib64/liblvm2cmd.so.2.02 (0x00002aca24ecb000)
        liblvm2cmd.so.2.02 => /lib64/liblvm2cmd.so.2.02 (0x00002afb708f4000)
        liblvm2cmd.so.2.02 => /lib64/liblvm2cmd.so.2.02 (0x00002b8167312000)


2.6.18-227.el5

lvm2-2.02.74-1.el5    BUILT: Fri Oct 15 10:26:21 CDT 2010
lvm2-cluster-2.02.74-2.el5    BUILT: Fri Oct 29 07:48:11 CDT 2010
device-mapper-1.02.55-1.el5    BUILT: Fri Oct 15 06:15:55 CDT 2010
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 200

Comment 5 errata-xmlrpc 2011-01-13 22:42:04 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0052.html