aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-05-06 15:24:09 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-05-06 15:24:09 +0000
commitc1fd1483bbfad0a6a07f3a45f78a7ab906fbd2c1 (patch)
tree5d22a661212ceecf37776a1ebd5981d64c1444c5 /src
parentafa97386eb0e214032afe9d4a2b1759487900d19 (diff)
downloadsos-c1fd1483bbfad0a6a07f3a45f78a7ab906fbd2c1.tar.gz
dont do sysrq, causes panics on systems like oracle racs
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@565 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rw-r--r--src/lib/sos/plugins/cluster.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/sos/plugins/cluster.py b/src/lib/sos/plugins/cluster.py
index cd986d68..0d31fbc2 100644
--- a/src/lib/sos/plugins/cluster.py
+++ b/src/lib/sos/plugins/cluster.py
@@ -21,8 +21,7 @@ class cluster(sos.plugintools.PluginBase):
"""
optionList = [("gfslockdump", 'gather output of gfs lockdumps', 'slow', False),
- ('lockdump', 'gather dlm lockdumps', 'slow', False),
- ('taskdump', 'trigger 3 sysrq+t dumps every 5 seconds (dangerous)', 'slow', False)]
+ ('lockdump', 'gather dlm lockdumps', 'slow', False)]
def checkenabled(self):
rhelver = self.policy().rhelVersion()
@@ -216,22 +215,9 @@ class cluster(sos.plugintools.PluginBase):
if self.getOption('gfslockdump'): self.do_gfslockdump()
if self.getOption('lockdump'): self.do_lockdump()
- if self.getOption('taskdump'): self.do_taskdump()
return
- def do_taskdump(self):
- if not os.access("/proc/sysrq-trigger", os.W_OK):
- return
-
- commands.getstatusoutput("echo t > /proc/sysrq-trigger")
- time.sleep(5)
- commands.getstatusoutput("echo t > /proc/sysrq-trigger")
- time.sleep(5)
- commands.getstatusoutput("echo t > /proc/sysrq-trigger")
-
- self.addCopySpec("/var/log/messages")
-
def do_lockdump(self):
status, output = commands.getstatusoutput("cman_tool services")
if status: