I have a high availability cluster with two nodes configured, after a maintenance carried out by an external company when restarting the system my mysql resource stopped working.
when executing the drbd-overview command I get the following.
Node Principal:
0:home Connected Primary/Secondary UpToDate/UpToDate C r-----
1:storage Connected Secondary/Primary UpToDate/UpToDate C r-----
2:mysql StandAlone Secondary/Unknown UpToDate/Outdated r-----
Node Secundary:
0:home Connected Secondary/Primary UpToDate/UpToDate C r-----
1:storage Connected Primary/Secondary UpToDate/UpToDate C r-----
2:mysql StandAlone Primary/Unknown UpToDate/Outdated r-----
I really don't know what the problem is, in other forums they tell me that it is a mysql problem and that I should start the service with the following command.
/etc/init.d/mysql start
but this doesn't work.
I checked the /var/lib/mysql directory on both nodes. I realized that I don't have the ibdatadir file on node 2 but I do have it on node 1. I don't know if this has something to do with it.
archivo clsstd2.err
mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql /usr/sbin/mysqld: Table ‘mysql.plugin’ doesn’t exist
[ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoBD: operating system error number 13 in a file operation.
InnoBD: The error means mysqld does not have access rights to the directory.
InnoBD: File name ./ibdata1
InnoBD: File operation call: ‘create’
InnoBD: Cannot continue operation
mysqld_safe mysqld from pid file /var/lib/mysql/clsstd2.pid ended
When executing the command crm_mon -1
=========
Stack: openais
Current DC: clsstd1 – partition with quorum
Version: 1.1.5-1.1.e15-01e86afaaa6da8c4836f68df80ababd6ca3902f
2 Nodes configured, 2 expected votes
4 Resources configured.
==========
Online: [ clsstd1 clsstd2 ]
Full list of resources:
Resources group all
virtual_ip_1 (ocf::heartbeat:IPaddr2): stopped
virtual_ip_2 (ocf::heartbeat:IPaddr2): stopped
virtual_ip_3 (ocf::heartbeat:IPaddr2): stopped
fs_home (ocf::heartbeat:Filesystem): stopped
fs_mysql (ocf::heartbeat:Filesystem): stopped
fs_storage (ocf::heartbeat:Filesystem): stopped
mysql (ocf::heartbeat:mysql): stopped
httpd (ocf::heartbeat:apache): stopped
swengined (lsb:/user/lib/ocf/resource.d/streamwide/swengine): stopped
Master/Slave Set: ms_drbd_home [drbd_home]
Masters: [ clsstd1 ]
Slaves: [ clsstd2 ]
Master/Slave Set: ms_drbd_mysql [drbd_mysql]
Masters: [ clsstd1 ]
Slaves: [ clsstd2 ]
Master/Slave Set: ms_drbd_mysql [drbd_storage]
Masters: [ clsstd1 ]
Slaves: [ clsstd2 ]
Migration summary:
* Node clsstd1:
* Node clsstd2: