Cluster service containing mysql resource fails to start with mysqld reporting "Can't start server: can't create PID file: Permission denied" in RHEL 6

Solution Verified - Updated -

Issue

  • mysql resource in cluster fails to start with a 'Timeout Error':
Nov 15 11:33:56 node1 rgmanager[18149]: [mysql] Starting Service mysql:myDatabase
Nov 15 11:34:11 node1 rgmanager[18342]: [mysql] Starting Service mysql:myDatabase > Failed - Timeout Error
Nov 15 11:34:11 node1 rgmanager[1852]: start on mysql "myDatabase" returned 1 (generic error)
  • /var/log/mysqld.log reports permission denied when trying to create the pid file in the cluster directory:
121115 11:33:25 [ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/cluster/mysql/mysql:rhelcms.pid' (Errcode: 13)
121115 11:33:25 [ERROR] Can't start server: can't create PID file: Permission denied
121115 11:33:25 mysqld_safe mysqld from pid file /var/run/cluster/mysql/mysql:rhelcms.pid ended

Environment

  • Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
  • Cluster service containing a mysql resource in /etc/cluster/cluster.conf

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content