aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/cluster.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index 03a0a0a4..2a181eff 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -42,6 +42,11 @@ class cluster(sos.plugintools.PluginBase):
def has_gfs(self):
return (len(self.doRegexFindAll(r'^\S+\s+\S+\s+gfs\s+.*$', "/etc/mtab")) > 0)
+
+ def sig_corosync_pid(self, name="corosync"):
+ stat, out, run = self.callExtProg("pidof %s" % (name,))
+ if stat == 0:
+ self.callExtProg("kill -s 12 %s" % (out.strip(),))
def diagnose(self):
rhelver = self.policy().rhelVersion()
@@ -225,6 +230,7 @@ class cluster(sos.plugintools.PluginBase):
self.addCopySpec("/etc/sysconfig/cluster")
self.addCopySpec("/etc/sysconfig/cman")
self.addCopySpec("/var/lib/ricci")
+ self.addCopySpec("/var/lib/luci")
self.collectExtOutput("/usr/sbin/rg_test test /etc/cluster/cluster.conf")
self.collectExtOutput("cman_tool status")
self.collectExtOutput("cman_tool -a nodes")
@@ -242,6 +248,9 @@ class cluster(sos.plugintools.PluginBase):
self.collectExtOutput("dlm_tool dump", root_symlink="dlm_controld.txt")
self.collectExtOutput("gfs_control dump", root_symlink="gfs_controld.txt")
self.collectExtOutput("dlm_tool log_plock", root_symlink="log_plock.txt")
+ # Signal corosync to capture diagnostic data to corosync.log
+ self.sig_corosync_pid()
+ self.addCopySpec("/var/log/cluster")
self.collectExtOutput("clustat")