diff options
author | Hari Gowtham <hgowtham@dhcp35-220.lab.eng.blr.redhat.com> | 2016-01-13 14:52:48 +0530 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-05-27 17:47:20 +0100 |
commit | 6db395239b1a300d0e66f0fb87ed51afc159d0d4 (patch) | |
tree | 32ca4c176ab9ddb3adbe4598ebc5560a88a49cdd | |
parent | 6391b89670d7f7a3c6efa92c3ca4fc8152ccc74c (diff) | |
download | sos-6db395239b1a300d0e66f0fb87ed51afc159d0d4.tar.gz |
[gluster] Store gluster tier related information
Gluster tiered volume has metadata files for promotion
and demotion which are useful for diagnosing errors
The patch adds these files to the list of files
stored in sos report.
Example: /var/run/gluster/volname-tier-dht/
promote-brickname-indexinbricklist
Closes #721.
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/gluster.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py index 07b1702e..cbcc3d34 100644 --- a/sos/plugins/gluster.py +++ b/sos/plugins/gluster.py @@ -15,6 +15,7 @@ import time import os.path import os +import glob import string from sos.plugins import Plugin, RedHatPlugin @@ -92,7 +93,7 @@ class Gluster(Plugin, RedHatPlugin): "/etc/glusterfs", "/var/lib/glusterd/", "/var/log/glusterfs" - ]) + ] + glob.glob('/var/run/gluster/*tier-dht/*')) self.make_preparations(self.statedump_dir) if self.check_ext_prog("killall -USR1 glusterfs glusterfsd"): |