diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-05-11 15:52:10 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-05-11 15:52:10 +0000 |
commit | 7d927d8196436a3fd619819b891bb80657c57e48 (patch) | |
tree | 8fd6c5a7a867a88fc77e95bce307b3b144654e62 | |
parent | e749dbf3eb1dffb13971789d3c6d876e93a52218 (diff) | |
download | sos-7d927d8196436a3fd619819b891bb80657c57e48.tar.gz |
signal corosync to gather diagnostic data to corosync.log
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@958 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | sos/plugins/cluster.py | 9 |
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") |