Apr 21 19:15:54 pxc1 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Apr 21 19:15:57 pxc1 mysql-systemd[8777]: /usr/bin/mysql-systemd: line 140: kill: (8776) - No such process
Apr 21 19:15:57 pxc1 mysql-systemd[8777]: ERROR! mysqld_safe with PID 8776 has already exited: FAILURE
Apr 21 19:15:57 pxc1 systemd[1]: [email protected]: control process exited, code=exited status=1
Apr 21 19:15:57 pxc1 mysql-systemd[9267]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
Apr 21 19:15:57 pxc1 mysql-systemd[9267]: ERROR! mysql already dead
Apr 21 19:15:57 pxc1 systemd[1]: [email protected]: control process exited, code=exited status=2
Apr 21 19:15:57 pxc1 mysql-systemd[9296]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
Apr 21 19:15:57 pxc1 mysql-systemd[9296]: WARNING: mysql may be already dead
Apr 21 19:15:57 pxc1 systemd[1]: Failed to start Percona XtraDB Cluster with config /etc/sysconfig/mysql.bootstrap.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has failed.
--
-- The result is failed.
Apr 21 19:15:57 pxc1 systemd[1]: Unit [email protected] entered failed state.
Apr 21 19:15:57 pxc1 systemd[1]: [email protected] failed.
Apr 21 19:15:57 pxc1 polkitd[6586]: Unregistered Authentication Agent for unix-process:8728:76373 (system bus name :1.67, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
解决办法:
修改最新节点的文件参数
#vi /var/lib/mysql/grastate.dat
把safe_to_bootstrap: 0 改成1后
开启服务:systemctl start [email protected]