<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>FW: Drbd resource return 20 (unspecified)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Thanks for your response. I am working hard to reproduce it with</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Your advice.</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">There is no more information than I gave you before.</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I find if running "drbdadm role …" with non-root right, it will throw 20.</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">[pfadmin@clnode1(NPS) /home/pfadmin]</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">$ drbdadm role db</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">unlink: Permission denied</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">open(/var/lock/drbd-147-0): Permission denied</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Command 'drbdsetup 0 role' terminated with exit code 20</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">drbdadm role db: exited with code 20</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I don't know if it's helpful to our case.</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Br </FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">vincent</FONT>
</P>
<P><FONT SIZE=1 FACE="Tahoma">______________________________________________ </FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">From: </FONT></B> <FONT SIZE=1 FACE="Tahoma">Chen, Yanfei (NSN - CN/Cheng Du) </FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">Sent: </FONT></B> <FONT SIZE=1 FACE="Tahoma">Wednesday, November 10, 2010 1:54 PM</FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">To: </FONT></B> <FONT SIZE=1 FACE="Tahoma">'drbd-user@lists.linbit.com'</FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">Subject: </FONT></B> <FONT SIZE=1 FACE="Tahoma">Drbd resource return 20 (unspecified)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">We use redhat cluster + drbd architecture. Oracle use resource res_drbd_oracle</FONT>
<BR><FONT SIZE=2 FACE="Arial">The drbd version is 8.3.2 cluster version 2.0.46</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">We get the below error:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Nov 4 11:43:49 clnode1 xinetd[4432]: EXIT: http status=0 pid=12414 duration=0(sec)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Nov 6 15:25:30 clnode1 clurgmgrd[4691]: <notice> status on drbd "res_drbd_oracle" returned 20 (unspecified) </FONT>
<BR><FONT SIZE=2 FACE="Arial">Nov 6 15:25:30 clnode1 clurgmgrd[4691]: <notice> Stopping service service:Oracle </FONT>
<BR><FONT SIZE=2 FACE="Arial">Nov 6 15:25:47 clnode1 kernel: block drbd0: role( Primary -> Secondary ) </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">The redhat cluster call the function drbd_status in drbd.sh to moniter status, which is from drbd</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">drbd_status() {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> role=$(drbdadm role $OCF_RESKEY_resource)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> case $role in</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Primary/*)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> return $OCF_RUNNING</FONT>
<BR><FONT SIZE=2 FACE="Arial"> ;;</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Secondary/*)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> return $OCF_NOT_RUNNING</FONT>
<BR><FONT SIZE=2 FACE="Arial"> ;;</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> esac</FONT>
<BR><FONT SIZE=2 FACE="Arial"> return $OCF_ERR_GENERIC</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">This problem happened two times and lead oracle service restarted.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Appricated you help us to understand what's the error 20 meaning? How could it happen?</FONT>
</P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<drbd.sh>> </FONT><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<drbd.conf>> </FONT>
</P>
</BODY>
</HTML>