This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 134117 - clvmd returns 0 on failure
clvmd returns 0 on failure
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: gfs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Christine Caulfield
GFS Bugs
Depends On:
  Show dependency treegraph
Reported: 2004-09-29 13:54 EDT by Derek Anderson
Modified: 2010-01-11 21:59 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-30 10:52:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Derek Anderson 2004-09-29 13:54:10 EDT
Description of problem:  For init scripts and troubleshooting the
clmvd should return non-zero if it cannot be started.  In this case
the dlm module was not loaded.  The only way (I can see) to get more
info on this is by running it with the -d flag.

[root@link-10 root]# clvmd
[root@link-10 root]# echo $?
[root@link-10 root]# pidof clvmd

[root@link-10 root]# clvmd -d
  Unable to create lockspace for CLVM

  Can't initialise cluster interface

[root@link-10 root]# modprobe dlm
[root@link-10 root]# clvmd
[root@link-10 root]# echo $?
[root@link-10 root]# pidof clvmd
[root@link-10 root]#

Version-Release number of selected component (if applicable):
[root@link-10 root]# clvmd -V

Cluster LVM Daemon version 0.2.1

How reproducible:

Steps to Reproduce:
1. Quorate cman cluster
2. Do not have the dlm module loaded
3. Start clvmd
Actual results:
clvmd did not start.  returned 0.

Expected results:
Return non-zero on failure.

Additional info:
Comment 1 Christine Caulfield 2004-09-30 10:22:25 EDT
This was because clvmd forked before trying to open the cluster
manager socket. So what it was saying was "success...I've forked",
then it failed whilst a daemon.

I've moved the fork to later on in the startup sequence now so it can
return error codes for the most basic problems. For others you'll just
have to watch syslog :)
Comment 2 Derek Anderson 2004-09-30 10:52:11 EDT

[root@link-12 root]# clvmd
  Unable to create lockspace for CLVM

  Can't initialise cluster interface

[root@link-12 root]# echo $?
[root@link-12 root]#
Comment 3 Kiersten (Kerri) Anderson 2004-11-16 14:05:15 EST
Updating version to the right level in the defects.  Sorry for the storm.

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