<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Any more suggestions on this?</span><span style='color:#1F497D;mso-fareast-language:EN-AU'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU'> linux-cluster-bounces@redhat.com [mailto:linux-cluster-bounces@redhat.com] <b>On Behalf Of </b>Roka, Rajendra<br><b>Sent:</b> Tuesday, 10 January 2012 11:49 AM<br><b>To:</b> linux-cluster@redhat.com<br><b>Subject:</b> Re: [Linux-cluster] Issue with mysql service in RHEL6.2 cluster<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span style='color:#1F497D'>I have changed the resources and service in cluster.conf as follows:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='color:#1F497D'><o:p> </o:p></span></b></p><p class=MsoNormal><span style='color:#1F497D'><resources><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <ip address="10.26.240.95/24" monitor_link="on" sleeptime="2"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <mysql config_file="/etc/my.cnf" listen_address="10.26.24.95" name="mysql" shutdown_wait="60" startup_wait="60"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <netfs export="/nfs/mysql" force_unmount="on" fstype="nfs" host="10.26.240.190" mountpoint="/var/lib/mysql" name="storage" no_unmount="on"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                </resources><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                <service autostart="1" domain="atp_failover" exclusive="0" name="mysql" recovery="relocate"><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <ip ref="10.26.240.95/24"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <netfs ref="storage"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                        <mysql ref="mysql"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                </service><o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#1F497D'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='color:#1F497D'>But no luck with the following message:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='color:#1F497D'><o:p> </o:p></span></b></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:42:57 atp-wwdev1 modcluster: Starting service: mysql on node <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:42:57 atp-wwdev1 rgmanager[1690]: Starting stopped service service:mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:42:58 atp-wwdev1 rgmanager[5252]: Adding IPv4 address 10.26.240.95/24 to eth0<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:43:01 atp-wwdev1 rgmanager[5401]: Starting Service mysql:mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:01 atp-wwdev1 rgmanager[5657]: Starting Service mysql:mysql > Failed - Timeout Error<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:01 atp-wwdev1 rgmanager[1690]: start on mysql "mysql" returned 1 (generic error)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[1690]: #68: Failed to start service:mysql; return value: 1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[1690]: Stopping service service:mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[5742]: Stopping Service mysql:mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[5764]: Checking Existence Of File /var/run/cluster/mysql/mysql:mysql.pid [mysql:mysql] > Failed - File Doesn't Exist<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[5786]: Stopping Service mysql:mysql > Succeed<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:02 atp-wwdev1 rgmanager[5837]: Removing IPv4 address 10.26.240.95/24 from eth0<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:04 atp-wwdev1 rgmanager[5924]: unmounting /var/lib/mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:04 atp-wwdev1 rgmanager[1690]: Service service:mysql is recovering<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:44:04 atp-wwdev1 rgmanager[1690]: #71: Relocating failed service service:mysql<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Jan 10 11:45:14 atp-wwdev1 rgmanager[1690]: Service service:mysql is stopped<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='color:#1F497D'>Also changed the my.conf to:<o:p></o:p></span></b></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>pid-file=/var/run/cluster/mysql/mysql.pid<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Cheers<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-AU'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU'> <a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a> <a href="mailto:[mailto:linux-cluster-bounces@redhat.com]">[mailto:linux-cluster-bounces@redhat.com]</a> <b>On Behalf Of </b>Ryan Mitchell<br><b>Sent:</b> Tuesday, 10 January 2012 10:12 AM<br><b>To:</b> <a href="mailto:linux-cluster@redhat.com">linux-cluster@redhat.com</a><br><b>Subject:</b> Re: [Linux-cluster] Issue with mysql service in RHEL6.2 cluster<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 01/10/2012 07:57 AM, Roka, Rajendra wrote: <o:p></o:p></p><p class=MsoNormal><b>I am having issue with mysql service in RHEL6.2 cluster. While starting service I receive the following error in /var/log/message</b><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Jan 10 08:47:52 atp-wwdev1 rgmanager[6015]: Starting Service mysql:mysql<o:p></o:p></p><p class=MsoNormal>Jan 10 08:47:54 atp-wwdev1 rgmanager[6096]: Starting Service mysql:mysql > Failed - Timeout Error<o:p></o:p></p><p class=MsoNormal>Jan 10 08:47:54 atp-wwdev1 rgmanager[1842]: start on mysql "mysql" returned 1 (generic error)<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU'>I'm pretty sure the first problem is that mysql doesn't start before the script times out.  All subsequent errors are trying to clean up from the failed start and can be ignored.  There won't be a pid file if the service did not start or if it was cleanly shut down outside of rgmanager.  Try increasing the startup_wait (something large until you find its successful, like 60).  Its currently waiting 2 seconds.<br><br>Also, I don't think you want to have the VIP and the service that uses it (mysql) in different services.  They should be in the same service, because they always have to run on the same node (they aren't independent).  Same goes for the filesystem resource if that is required by MYSQL.  Perhaps something like the following?:<o:p></o:p></span></p><p class=MsoNormal>                <resources><o:p></o:p></p><p class=MsoNormal>                        <ip address="10.26.240.95/24" monitor_link="on" sleeptime="2"/><o:p></o:p></p><p class=MsoNormal>                        <netfs export="/nfs/mysql" force_unmount="on" fstype="nfs" host="10.26.240.190" mountpoint="/var/lib/mysql" name="filesystem" no_unmount="on"/><o:p></o:p></p><p class=MsoNormal>                        <mysql config_file="/etc/my.cnf" listen_address="10.26.240.95" name="mysql" shutdown_wait="60" startup_wait="60"/><o:p></o:p></p><p class=MsoNormal>                </resources><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU'>                <service autostart="1" domain="atp_failover" exclusive="0" name="database" recovery="relocate"> <o:p></o:p></span></p><p class=MsoNormal>                        <ip ref="10.26.240.95/24"/><o:p></o:p></p><p class=MsoNormal>                        <netfs ref="filesystem"/><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU'>                        <mysql ref="mysql"/> <o:p></o:p></span></p><p class=MsoNormal>                </service><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU'><br>Lastly, you have created a fence device but you haven't assigned it to the nodes so they currently have no fencing devices.  Make sure you do that and test fencing before doing anything important with this cluster.<br><br>Regards,<br><br>Ryan Mitchell<br>Software Maintenance Engineer<br>Support Engineering Group<br>Red Hat, Inc.<o:p></o:p></span></p><pre>Important Notice:<o:p></o:p></pre><pre>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. <o:p></o:p></pre><pre>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.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Please consider the environment - do you really need to print this email?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre></div></body></html>
<pre>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?