From 08152c90f2d5a07664670ad99389b710cdf017de Mon Sep 17 00:00:00 2001 From: Patrick Caulfield Date: Tue, 5 Feb 2008 09:38:04 +0000 Subject: [PATCH] Update usage message for clvmd. Fix clvmd man page printing
, clarified debug options. --- WHATS_NEW | 2 ++ daemons/clvmd/clvmd.c | 4 +++- man/clvmd.8 | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 3bf3f7acf..d09c500ce 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,7 @@ Version 2.02.34 - =================================== + Update usage message for clvmd. + Fix clvmd man page printing
, clarified debug options. Version 2.02.33 - 31st January 2008 =================================== diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 678ee4889..574010fe5 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -146,8 +146,10 @@ static void usage(char *prog, FILE *file) fprintf(file, "\n"); fprintf(file, " -V Show version of clvmd\n"); fprintf(file, " -h Show this help information\n"); - fprintf(file, " -d Don't fork, run in the foreground\n"); + fprintf(file, " -d Set debug level\n"); + fprintf(file, " If starting clvmd then don't fork, run in the foreground\n"); fprintf(file, " -R Tell all running clvmds in the cluster to reload their device cache\n"); + fprintf(file, " -C Sets debug level (from -d) on all clvmd instances clusterwide\n"); fprintf(file, " -t Command timeout (default 60 seconds)\n"); fprintf(file, " -T Startup timeout (default none)\n"); fprintf(file, "\n"); diff --git a/man/clvmd.8 b/man/clvmd.8 index e9910e5ff..c43ff4cda 100644 --- a/man/clvmd.8 +++ b/man/clvmd.8 @@ -35,6 +35,16 @@ is also specified. Tells all clvmds in a cluster to enable/disable debug logging Without this switch, only the local clvmd will change its debug level to that given with .B -d. +.br +This does not work correctly if specified on the command-line that starts clvmd. +If you want to start clvmd +.B and +enable cluster-wide logging then the command needs to be issued twice, eg: +.br +clvmd +.br +clvmd -d2 +.br .TP .I \-t Specifies the timeout for commands to run around the cluster. This should not @@ -52,11 +62,11 @@ latencies on a cluster with large numbers of logical volumes. If you get the return code of 5 it is usually not necessary to restart clvmd - it will start as soon as that blockage has cleared. This flag is to allow startup scripts to exit in a timely fashion even if the cluster is stalled for some reason. -
+.br The default is 0 (no timeout) and the value is in seconds. Don't set this too small or you will experience spurious errors. 10 or 20 seconds might be sensible. -
+.br This timeout will be ignored if you start clvmd with the -d switch. .TP .I \-R