[sos-devel] Adding the output of "mkqdisk -L"?

Bryn M. Reeves bmr at redhat.com
Wed Apr 20 15:33:48 UTC 2011


On 04/20/2011 04:19 PM, Pierguido Lambri wrote:
> Hi all.
> 
> In the last period I'm requesting a lot the output of the command:
> 
> # mkqdisk -L
> 
> to retrieve the status of the quorum disk on a cluster, especially on RHEL6.
> Is it possible to have it enabled by default and put it in the 
> sos_commands/cluster directory?

This seems quite reasonable to me - probably should have included this some time
ago. I'll let Pierre comment on it too but how about something like the patch at
the foot of this mail?

Regards,
Bryn.

diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index 45bb23e..4ab81f5 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -79,6 +79,7 @@ class cluster(sos.plugintools.PluginBase):

         if rhelver is not 4: # 5+
           self.collectExtOutput("cman_tool -a nodes")
+          self.collectExtOutput("mkqdisk -L")

         if rhelver is 5:
           self.collectExtOutput("group_tool -v")




More information about the sos-devel mailing list