Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2109206

Summary: lvmdbusd start should check if it's already running
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: lvmdbusd QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, tasleson, zkabelac
Version: 9.1Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.03.17-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:23:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2022-07-20 16:21:07 UTC
Description of problem:
[root@hayes-03 tmp]# ps -ef | grep lvmdbusd
root        3277       1  7 11:08 ?        00:00:23 /usr/bin/python3 /usr/sbin/lvmdbusd
root        8807    2248  0 11:13 pts/0    00:00:00 grep --color=auto lvmdbusd

[root@hayes-03 tmp]# lvmdbusd  --debug --udev
Jul 20 11:13:36.924649: 8808:8808 - We have VDO support
Jul 20 11:13:36.941327: 8808:8808 - lvmdb - refresh entry
Jul 20 11:13:36.979870: 8808:8808 - lvmdb - refresh exit
Jul 20 11:13:36.982983: 8808:8808 - Utilizing udev to trigger updates
Jul 20 11:13:36.987942: 8808:8808 - Service ready! total time= 0.0709, lvm time= 0.0542 count= 3


Version-Release number of selected component (if applicable):
lvm2-dbusd-2.03.16-2.el9    BUILT: Thu Jul 14 11:44:22 AM CDT 2022

Comment 1 Tony Asleson 2022-10-17 16:01:53 UTC
Correction posted upstream: https://sourceware.org/git/?p=lvm2.git;a=commit;h=3fdf4493481ff8baae2ac5416dce6d05b69e6b28

Comment 4 Corey Marthaler 2022-11-21 20:09:04 UTC
Marking Verified:Tested in the latest rpms.

lvm2-2.03.17-1.el9    BUILT: Thu Nov 10 05:02:16 PM CET 2022
lvm2-libs-2.03.17-1.el9    BUILT: Thu Nov 10 05:02:16 PM CET 2022
lvm2-dbusd-2.03.17-1.el9    BUILT: Thu Nov 10 05:01:55 PM CET 2022


[root@virt-246 ~]# ps -ef | grep lvmdbusd
root      251834  244687  0 21:04 pts/1    00:00:00 /usr/bin/python3 /usr/sbin/lvmdbusd --debug --udev
root      251921  251890  0 21:06 pts/2    00:00:00 grep --color=auto lvmdbusd

[root@virt-246 ~]# lvmdbusd  --debug --udev
Nov 21 21:06:57.576473: 251924:251924 - The --udev option is no longer supported,the daemon always uses a combination of dbus notify from lvm tools and udev
Nov 21 21:06:57.576846: 251924:251924 - Using lvm binary: /usr/sbin/lvm
Nov 21 21:06:57.585211: 251924:251924 - We have VDO support
Nov 21 21:06:57.586161: 251924:251924 - Daemon already running, exiting!

Comment 8 Corey Marthaler 2023-01-03 23:38:16 UTC
Fixed in the latest version as well.

lvm2-2.03.17-3.el9    BUILT: Wed Dec  7 10:41:40 AM CST 2022
lvm2-libs-2.03.17-3.el9    BUILT: Wed Dec  7 10:41:40 AM CST 2022


[root@hayes-03 ~]# lvmdbusd  --debug --udev
Jan 03 17:36:11.941232: 2498:2498 - The --udev option is no longer supported,the daemon always uses a combination of dbus notify from lvm tools and udev
Jan 03 17:36:11.941410: 2498:2498 - Using lvm binary: /usr/sbin/lvm
Jan 03 17:36:11.947635: 2498:2498 - We have VDO support
Jan 03 17:36:11.948398: 2498:2498 - Daemon already running, exiting!

Comment 10 errata-xmlrpc 2023-05-09 08:23:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2544