aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Lloyd <trent.lloyd@canonical.com>2021-04-27 20:11:21 +0800
committerJake Hunsaker <jhunsake@redhat.com>2021-06-30 10:15:39 -0400
commit757c9e4b6b5572e58f05aaa0952bcfef5b4e49bd (patch)
treecdefc8c7b40639ea55318b45c1d626350c824afc
parent1efbc5a39818defec04b022b6adbaf2ae83a00b7 (diff)
downloadsos-757c9e4b6b5572e58f05aaa0952bcfef5b4e49bd.tar.gz
[mysql] Update collection paths for Debian/Ubuntu
- All configuration files from /etc/mysql/ - Default error log path: /var/log/mysql/error.log - Alternative data directory location /var/lib/percona-xtradb-cluster - gvwstate.dat for galera debugging - Update the various server package names (though all seem to depend on mysql-common anyway) Signed-off-by: Trent Lloyd <trent.lloyd@canonical.com>
-rw-r--r--sos/report/plugins/mysql.py22
1 files changed, 17 insertions, 5 deletions
diff --git a/sos/report/plugins/mysql.py b/sos/report/plugins/mysql.py
index 6fc021e1..72e5c653 100644
--- a/sos/report/plugins/mysql.py
+++ b/sos/report/plugins/mysql.py
@@ -35,7 +35,8 @@ class Mysql(Plugin):
"/var/log/mysqld.log",
"/var/log/mysql/mysqld.log",
"/var/log/mariadb/mariadb.log",
- "/var/lib/mysql/grastate.dat"
+ "/var/lib/mysql/grastate.dat",
+ "/var/lib/mysql/gvwstate.dat"
])
if self.get_option("all_logs"):
@@ -98,14 +99,25 @@ class RedHatMysql(Mysql, RedHatPlugin):
class DebianMysql(Mysql, DebianPlugin, UbuntuPlugin):
packages = (
- 'mysql-server',
+ 'mysql-server.*',
'mysql-common',
- 'mariadb-server',
- 'mariadb-common'
+ 'mariadb-server.*',
+ 'mariadb-common',
+ 'percona-xtradb-cluster-server-.*',
)
def setup(self):
super(DebianMysql, self).setup()
- self.add_copy_spec("/etc/mysql/conf.d/mysql*")
+ self.add_copy_spec([
+ "/etc/mysql/",
+ "/var/log/mysql/error.log",
+ "/var/lib/mysql/*.err",
+ "/var/lib/percona-xtradb-cluster/*.err",
+ "/var/lib/percona-xtradb-cluster/grastate.dat",
+ "/var/lib/percona-xtradb-cluster/gvwstate.dat",
+ "/var/lib/percona-xtradb-cluster/innobackup.*.log",
+ ])
+ self.add_cmd_output("du -s /var/lib/percona-xtradb-cluster/*")
+
# vim: set et ts=4 sw=4 :