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 886916 - clvmd does not clearly state that you need to run dlm.service
Summary: clvmd does not clearly state that you need to run dlm.service
Keywords:
Status: CLOSED DUPLICATE of bug 1038818
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 883874 1080147
TreeView+ depends on / blocked
 
Reported: 2012-12-13 15:23 UTC by michal novacek
Modified: 2021-09-08 20:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-19 13:23:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description michal novacek 2012-12-13 15:23:06 UTC
Description:
On running corosync/pacemaker cluster I try to run clvmd which does not suceed.
That is correct because dlm.service is not running but I believe that should be
clearly said by the service as it will never suceed without running dlm.service

Also please correct what it says in the messages: 
"Unable to create DLM lockspace for CLVM: Success" is really not very good way
of reporting error.
"...: could not connect to cluster manager" is also not helpful because there
is no cluster manager any more.

Version: 
$ rpm -q lvm2-cluster
lvm2-cluster-2.02.98-2.el7.x86_64

RHEL-7.0-20121120.1


Actual results: 
clvmd.service is not started. 

Expected results: 
clvmd.service not started with some helpful message like
'dlm.service is not running. Run it with "systemctl start dlm.service"' 
Or better to implement (optional) dependency of two services.
     
Reproducer:
$ service clvmd start
Starting clvmd (via systemctl):  Job for clvmd.service failed. See
'systemctl status clvmd.service' and 'journalctl -n' for details.
                                                               [FAILED]
$ systemctl status clvmd.service
clvmd.service - LSB: This service is Clusterd LVM Daemon.
Loaded: loaded (/etc/rc.d/init.d/clvmd)
Active: failed (Result: exit-code) since Thu, 2012-12-13 08:39:59 CST
Process: 1797 ExecStart=/etc/rc.d/init.d/clvmd start (code=exited, status=3)
CGroup: name=systemd:/system/clvmd.service
 
zibn-node01 clvmd[1802]: Unable to create DLM lockspace for CLVM: Success
zibn-node01 clvmd[1797]: Starting clvmd: clvmd could not connect to cluster \
manager
zibn-node01 clvmd[1797]: Consult syslog for more information
zibn-node01 systemd[1]: Failed to start LSB: This service is Clusterd LVM \
Daemon..
zibn-node01 systemd[1]: Unit clvmd.service entered failed state
$

Comment 3 Lon Hohberger 2012-12-13 22:05:49 UTC
Shouldn't the clvmd.service simply require the dlm.service?

Comment 4 Lon Hohberger 2012-12-13 22:13:35 UTC
As of:

 lvm2-cluster-2.02.98-4.el7           

clvmd doesn't have a unit file, so I guess making this dependency would prove difficult.

Comment 5 Peter Rajnoha 2012-12-14 07:51:51 UTC
Ondrej is preparing native systemd unit for clvmd, the unit/patch has already been posted to lvm2-devel list:

https://www.redhat.com/archives/lvm-devel/2012-November/msg00001.html

I'll review that asap and then we'll package that for RHEL7/rawhide...

Comment 7 Peter Rajnoha 2014-02-19 13:23:52 UTC
The clvmd is now going to be managed as a cluster resource - so it will be part of resource-agents package. The resource manager will make sure dlm is present.

We will still provide systemd units for standalone functionality without cluster resource manager and these systemd units do require dlm.service directly.

See also bug #1038818.

*** This bug has been marked as a duplicate of bug 1038818 ***


Note You need to log in before you can comment on or make changes to this bug.