Hi,
I am using:
Distributor ID: | Ubuntu |
---|---|
Description: | Ubuntu 20.04.6 LTS |
Release: | 20.04 |
Codename: | focal |
I install Percona Server Server version: 8.0.31-23 Percona Server (GPL), Release '23', Revision '71449379'
I shutdown mysql, then add a mount and softlink the data and log directors to that mount:
> ls -l /var/lib/mysql
lrwxrwxrwx 1 root root 15 Aug 7 19:08 /var/lib/mysql -> /mnt/data/mysql
Additionally I made some updates to the /etc/my.cnf
When I restart MySQL, it fails, and I am not sure where to look. The output is /var/log/syslog
is not very helpful. I get the following:
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: Starting Percona MySQL Server...
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72315.912589] kauditd_printk_skb: 30 callbacks suppressed
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72315.912594] audit: type=1400 audit(1691507431.403:345): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/etc/my.cnf" pid=22454 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=0
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72315.912662] audit: type=1400 audit(1691507431.403:346): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/data/mysql/my.cnf" pid=22454 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72315.912908] audit: type=1400 audit(1691507431.403:347): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/etc/my.cnf" pid=22454 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=0
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72315.912952] audit: type=1400 audit(1691507431.403:348): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/data/mysql/my.cnf" pid=22454 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.206126] audit: type=1400 audit(1691507431.695:349): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/var/log/mysqld.log" pid=22454 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.206137] audit: type=1400 audit(1691507431.695:350): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/var/log/mysqld.log" pid=22454 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.206206] audit: type=1400 audit(1691507431.695:351): apparmor="ALLOWED" operation="file_perm" profile="/usr/sbin/mysqld" name="/var/log/mysqld.log" pid=22454 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.206549] audit: type=1400 audit(1691507431.699:352): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/var/log/mysqld.log" pid=22454 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=114
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 1.
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: Stopped Percona MySQL Server.
Aug 8 15:10:31 ip-10-71-252-15 systemd[1]: Starting Percona MySQL Server...
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.456922] audit: type=1400 audit(1691507431.947:353): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/etc/my.cnf" pid=22506 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=0
Aug 8 15:10:31 ip-10-71-252-15 kernel: [72316.456991] audit: type=1400 audit(1691507431.947:354): apparmor="ALLOWED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/data/mysql/my.cnf" pid=22506 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=114 ouid=114
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 2.
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: Stopped Percona MySQL Server.
Aug 8 15:10:32 ip-10-71-252-15 systemd[1]: Starting Percona MySQL Server...
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: Stopped Percona MySQL Server.
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: Starting Percona MySQL Server...
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:33 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: Stopped Percona MySQL Server.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: Starting Percona MySQL Server...
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: Stopped Percona MySQL Server.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Start request repeated too quickly.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 8 15:10:34 ip-10-71-252-15 systemd[1]: Failed to start Percona MySQL Server.
Any ideas?
Thanks!