<html><body><p><font size="2">Hi,</font><br><br>I am facing multiple issues with the DB2 Resource Agent.
<p>The first issue was that when I start Pacemaker, DB2 is also started and immediately after that DB2 gets stopped. I fixed that by removing \ before $ in Line numbers 686, 689 and 691.
<p>684 CMD="if db2 connect to $db;<br>685 then<br>686 db2 select * from sysibm.sysversions ; rc=$?;<br>687 db2 terminate;<br>688 else<br>689 rc=$?;<br>690 fi;<br>691 exit $rc"
<p>Now the second issue I am facing is that when I crash the node were DB is primary, the STANDBY DB is not getting promoted to PRIMARY. I could fix that by adding below lines in db2_promote()
<p>773 *)<br>774 # must take over forced<br>775 force="by force"<br>776<br>777 ;;
<p>But I am not sure of the implications that this can cause.
<p>Can someone suggest whether what I am doing is correct OR will this lead to any Data loss.<br><br><font size="2" face="Arial"><br></font><table border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td width="650" valign="bottom"><font size="2" face="Arial">Regards,</font><br><br><b><font color="#888888" face="Arial">Dileep V Nair</font></b><font size="2" face="Arial"><br>Senior AIX Administrator<br>Cloud Managed Services Delivery (MSD), India<br>IBM Cloud</font></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td width="650" colspan="2" valign="middle"><hr width="100%" size="2" align="left"></td></tr>
<tr valign="top"><td width="401"><b><font size="1" color="#466BB0" face="Arial">E-mail:</font></b><font size="1" color="#5F5F5F" face="Arial"> </font><a href="mailto:dilenair@in.ibm.com" target="_blank"><u><font size="1" color="#5F5F5F" face="Arial">dilenair@in.ibm.com</font></u></a></td><td width="249"><div align="right"><font size="1" color="#5F5F5F" face="Arial">Outer Ring Road, Embassy Manya<br>Bangalore, KA 560045<br>India</font></div></td></tr></table><br><BR>
</body></html>