Red Hat Bugzilla – Bug 596352
clvmd -d 2 does not fork
Last modified: 2013-02-28 23:09:05 EST
Description of problem:
While trying to debug a startup hang I wanted to use the "-d 2" option to dump debug messages to syslog while starting up as normal. Unfortunately clvmd does not run in the background in this case.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. clvmd -d 2
2. clvmd should continue running while returning you to the command prompt.
clvmd runs in the foreground
clvmd run in the background
From the man page for clvmd:
Enable debug logging. Value can be 0, 1 or 2.
0 disables debug logging in a running clvmd
1 sends debug logs to stderr (clvmd will not fork in this case)
2 sends debug logs to syslog
If -d is specified without a value then 1 is assumed if you are
starting a new clvmd, 2 if you are enabling debug in a running
The real problem is the -d is overloaded. there should be a separate flag to indicate to clvmd that it should not fork.
Can this be fixed as documented so I can debug startup timeouts?
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.
** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **
There should be new option (as already mentioned in comment #2).
Proposed patch here
(In reply to comment #0)
> Steps to Reproduce:
> 1. clvmd -d 2
> 2. clvmd should continue running while returning you to the command prompt.
One important note:
Please be aware of the fact that you have to use "clvmd -d2" not "clvmd -d 2" (leave the space out!).
Fix verified in the latest rpms.
* Note: like mentioned in comment #10, "clvmd -d2" not "clvmd -d 2" is what's required for this to work. "clvmd -d 2" evals to no argument, and thus is the same as -d1.
lvm2-2.02.83-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
lvm2-libs-2.02.83-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
lvm2-cluster-2.02.83-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
udev-147-2.35.el6 BUILT: Wed Mar 30 07:32:05 CDT 2011
device-mapper-1.02.62-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-libs-1.02.62-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-event-1.02.62-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-event-libs-1.02.62-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
cmirror-2.02.83-3.el6 BUILT: Fri Mar 18 09:31:10 CDT 2011
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.