Error "InnoDB: Unable to lock <db file>, error: 11" and "InnoDB: using the same InnoDB data or log files. " when trying to start mysqld service or mysql cluster resource in RHEL
Issue
- A
mysqlresource in a cluster service fails to start:
Nov 14 17:29:27 rgmanager [mysql] Starting Service mysql:myDatabase
Nov 14 17:29:27 rgmanager [mysql] Looking For IP Address > Succeed - IP Address Found
Nov 14 17:29:42 rgmanager [mysql] Starting Service mysql:myDatabase > Failed - Timeout Error
- This message appears in
/var/log/mysqld.logfile:
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11</code>
- Cluster failover of
mysqlddoes not happen as expected. I can start the service and relocate it, but when I fence a node the service fails to start.
Environment
- Red Hat Enterprise Linux (RHEL) 5 or 6
- As a standalone server, or
- Using the High Availability Add On
- Cluster service in
/etc/cluster/cluster.confcontaining amysqlresource
- Cluster service in
mysql-serverpackage provided by Red Hat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
