From 18b153ffdbd5a6319e3aea0f7eea6c2831d6a95e Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Thu, 8 Feb 2018 10:50:33 +0000 Subject: [mysql] Add 'du' to the mysql database path This patch gathers the size of the content in var/lib/mysql , which can be useful in some cases to see if a db is growing out of control (for example keystones tokens or another). Closes: #1144 Resolves: #1210 Signed-off-by: Jose Castillo Signed-off-by: Bryn M. Reeves --- sos/plugins/mysql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py index decca694..d626858c 100644 --- a/sos/plugins/mysql.py +++ b/sos/plugins/mysql.py @@ -79,6 +79,8 @@ class Mysql(Plugin): name = "mysqldump_--all-databases" self.add_cmd_output("mysqldump %s" % opts, suggest_filename=name) + self.add_cmd_output("du -s /var/lib/mysql/*") + class RedHatMysql(Mysql, RedHatPlugin): -- cgit