commit 03e9a30a4d42d0495bcff45fc6c9df84615c6070
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Fri Feb 28 08:41:58 2014 +1100
Fix: crm_report: Only gather dlm data if dlm_controld is running
(cherry picked from commit 837763e9abe258baf8b916f5744c07b7ff348871)
diff --git a/tools/report.collector b/tools/report.collector
index f40dc01..d17ce5f 100644
--- a/tools/report.collector
+++ b/tools/report.collector
@@ -491,6 +491,9 @@ sys_stats() {
dlm_dump() {
if which dlm_tool >/dev/null 2>&1 ; then
+ if
+ ps -ef | egrep -qs '[d]lm_controld'
+ then
echo "--- Lockspace overview:"
dlm_tool ls -n
@@ -503,6 +506,7 @@ dlm_dump() {
dlm_tool lockdump "$N"
dlm_tool lockdebug -svw "$N"
done
+ fi
fi
}