Bug 886916

Summary: clvmd does not clearly state that you need to run dlm.service
Product: Red Hat Enterprise Linux 7 Reporter: michal novacek <mnovacek>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Default / Unclassified QA Contact: cluster-qe <cluster-qe>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-19 13:23:52 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:
Bug Depends On:    
Bug Blocks: 883874, 1080147    

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 ***