[Linux-cluster] Issue with mysql service in RHEL6.2 cluster

Roka, Rajendra rajendra.roka at pacificmags.com.au
Thu Jan 12 04:39:43 UTC 2012

Yes it starts if I do manually:


[root at atp-wwdev1 ~]# mount -t nfs

[root at atp-wwdev1 ~]# /etc/init.d/mysqld start

Starting mysqld:                                           [  OK  ]


[root at atp-wwdev1 ~]# cat /var/log/mysqld.log

120112 15:28:57 mysqld_safe Starting mysqld daemon with databases from

120112 15:28:58  InnoDB: Started; log sequence number 0 44233

120112 15:28:58 [Note] Event Scheduler: Loaded 0 events

120112 15:28:58 [Note] /usr/libexec/mysqld: ready for connections.

Version: '5.1.52'  socket: '/var/lib/mysql/mysql.sock'  port: 3306
Source distribution


[root at atp-wwdev1 ~]# /etc/init.d/mysqld stop

Stopping mysqld:                                           [  OK  ]

root at atp-wwdev1 ~]# cat /var/log/mysqld.log

120112 15:29:39 [Note] /usr/libexec/mysqld: Normal shutdown

120112 15:29:39 [Note] Event Scheduler: Purging the queue. 0 events

120112 15:29:39  InnoDB: Starting shutdown...

120112 15:29:43  InnoDB: Shutdown completed; log sequence number 0 44233

120112 15:29:43 [Note] /usr/libexec/mysqld: Shutdown complete


But if I start with cluster, it doesnot give any error message in


Once again my cluster.conf is follows:

<?xml version="1.0"?>

<cluster config_version="39" name="atp_mysql">


                <clusternode name="atp-wwdev1.test1.com.au" nodeid="1">


                        <multicast addr=""/>


                <clusternode name="atp-wwdev2.test1.com.au" nodeid="2"


                        <multicast addr=""/>




                <fencedevice agent="fence_xvm" name="fence"/>




                        <failoverdomain name="atp_failover"
nofailback="0" ordered="1" restricted="0">

name="atp-wwdev1.test1.com.au" priority="2"/>

name="atp-wwdev2.test1.com.au" priority="5"/>




                        <ip address="" monitor_link="on"

                        <mysql config_file="/etc/my.cnf"
listen_address="" name="mysql" shutdown_wait="60"

                        <netfs export="/nfs/mysql" force_unmount="on"
fstype="nfs" host="" mountpoint="/var/lib/mysql"
name="storage" no_unmount="on"/>


                <service autostart="1" domain="atp_failover"
exclusive="0" name="mysql" recovery="relocate">

                        <ip ref=""/>

                        <netfs ref="storage"/>

                        <mysql ref="mysql"/>



        <fence_daemon clean_start="0" post_fail_delay="0"

        <cman expected_votes="1" two_node="1">

                <multicast addr=""/>



        <logging debug="off"/>



And my.cnf is follows:





# Disabling symbolic-links is recommended to prevent assorted security







If you need any more info, please let me know.







From: linux-cluster-bounces at redhat.com
[mailto:linux-cluster-bounces at redhat.com] On Behalf Of Ryan Mitchell
Sent: Thursday, 12 January 2012 3:01 PM
To: linux-cluster at redhat.com
Subject: Re: [Linux-cluster] Issue with mysql service in RHEL6.2 cluster


On 01/12/2012 01:11 PM, Roka, Rajendra wrote: 

Any more suggestions on this?

According to the new log, it still timed out after 60 seconds, so either
that wasn't long enough either, or there is a misconfiguration and the
database can't start because of it:

Jan 10 11:42:57 atp-wwdev1 modcluster: Starting service: mysql on node 

Jan 10 11:42:57 atp-wwdev1 rgmanager[1690]: Starting stopped service

Jan 10 11:42:58 atp-wwdev1 rgmanager[5252]: Adding IPv4 address to eth0

Jan 10 11:43:01 atp-wwdev1 rgmanager[5401]: Starting Service mysql:mysql

Jan 10 11:44:01 atp-wwdev1 rgmanager[5657]: Starting Service mysql:mysql
> Failed - Timeout Error

Jan 10 11:44:01 atp-wwdev1 rgmanager[1690]: start on mysql "mysql"
returned 1 (generic error)

Jan 10 11:44:02 atp-wwdev1 rgmanager[1690]: #68: Failed to start
service:mysql; return value: 1

What does it say in your mysql log?  The resource script runs the
command to start the database and then waits for it to return success.
It waited 60 seconds, and hadn't received any notice that the database
started or not, so it gave up.

Look in the logs to see if there is any indication as to why the
database won't start.  It could be because you have the wrong
configuration in /etc/my.cnf, no permissions on some critical
directories, or the resource script is misconfigured.  Also, you should
investigate whether you can manually start the database (after mounting
the NFS mount and adding the VIP of course) outside of cluster (and
compare working and failing mysql logs).


Ryan Mitchell
Software Maintenance Engineer
Support Engineering Group
Red Hat, Inc.

Important Notice:
This message and its attachments are confidential and may contain information which is protected by copyright. It is intended solely for the named addressee. If you are not the authorised recipient (or responsible for delivery of the message to the authorised recipient), you must not use, disclose, print, copy or deliver this message or its attachments to anyone. If you receive this email in error, please contact the sender immediately and permanently delete this message and its attachments from your system. 
Any content of this message and its attachments that does not relate to the official business of Pacific Magazines Pty Limited must be taken not to have been sent or endorsed by it. No representation is made that this email or its attachments are without defect or that the contents express views other than those of the sender.

Please consider the environment - do you really need to print this email?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20120112/ed777ae6/attachment.htm>

More information about the Linux-cluster mailing list