MySQL service shows started in pcs status, but service status show mysql is failed
Issue
- MySQL service is running in cluster on node1, but when check service status on node2 it is failed/not running.
# pcs status
[...]
Full list of resources:
vmfence (stonith:fence_vmware_soap): Started Node1
Resource Group: test_grp
vgdata (ocf::heartbeat:LVM): Started Node2
vglog (ocf::heartbeat:LVM): Started Node2
mysql (ocf::heartbeat:Filesystem): Started Node2
data (ocf::heartbeat:Filesystem): Started Node2
log (ocf::heartbeat:Filesystem): Started Node2
vip (ocf::heartbeat:IPaddr2): Started Node2
mysqldb (ocf::heartbeat:mysql): Started Node2
[...]
# systemctl status mysqld
mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-08-15 17:35:32 GMT; 18h ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 18828 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE)
Process: 18790 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 18828 (code=exited, status=1/FAILURE)
Status: "SERVER_BOOTING"
Error: 98 (Address already in use)
Aug 15 17:35:28 Node2.example.com systemd[1]: Starting MySQL Server...
Aug 15 17:35:32 Node2.example.com systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
Aug 15 17:35:32 Node2.example.com systemd[1]: Failed to start MySQL Server.
Aug 15 17:35:32 Node2.example.com systemd[1]: Unit mysqld.service entered failed state.
Aug 15 17:35:32 Node2.example.com systemd[1]: mysqld.service failed.
Environment
- Red Hat Enterprise Linux (RHEL) 7 with the Pacemaker High Availability Add On
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.