<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'><span>Vijay - you will have better luck posting these questions in the DRBD users mailing list as this (mc) list is specifically for the java management console.<br><br><span name="x"></span><p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Jake</span><br></p><br></span><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>drbd-mc-request@lists.linbit.com<br><b>To: </b>drbd-mc@lists.linbit.com<br><b>Sent: </b>Thursday, August 4, 2011 6:00:04 AM<br><b>Subject: </b>drbd-mc Digest, Vol 30, Issue 2<br><br>Send drbd-mc mailing list submissions to<br> drbd-mc@lists.linbit.com<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://lists.linbit.com/mailman/listinfo/drbd-mc<br>or, via email, send a message with subject or body 'help' to<br> drbd-mc-request@lists.linbit.com<br><br>You can reach the person managing the list at<br> drbd-mc-owner@lists.linbit.com<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of drbd-mc digest..."<br><br><br>Today's Topics:<br><br> 1. Help : Heartbeat failover not working (vijay patel)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 3 Aug 2011 20:42:05 +0530<br>From: vijay patel <catchvjay@hotmail.com><br>Subject: [drbd-mc] Help : Heartbeat failover not working<br>To: <drbd-mc@lists.linbit.com><br>Message-ID: <BLU139-W869086011A5EB71EBFBF6B63A0@phx.gbl><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br>Hi,<br> <br>I have configured DRBD and Heartbeat on two nodes for High Availability of NFS. <br> <br>[root@PdCuLx0501p ~]# rpm -qa | grep drbd<br>drbd82-8.2.6-1.el5.centos<br>kmod-drbd82-8.2.6-2<br> <br><br>[root@PdCuLx0501p ~]# rpm -qa | grep heartbeat<br>heartbeat-pils-2.1.4-11.el5<br>heartbeat-ldirectord-2.1.4-11.el5<br>heartbeat-stonith-2.1.4-11.el5<br>heartbeat-devel-2.1.4-11.el5<br>heartbeat-2.1.4-11.el5<br>heartbeat-gui-2.1.4-11.el5<br><br> <br>[root@PdCuLx0501p ~]# cat /proc/drbd<br>version: 8.2.6 (api:88/proto:86-88)<br>GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn@c5-x8664-build, 2008-10-03 11:30:17<br> 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate B r---<br> ns:1453512252 nr:1076780 dw:1454589032 dr:4588973 al:57316104 bm:686 lo:0 pe:0 ua:0 ap:0 oos:0<br>[root@PdCuLx0501p ~]#<br><br> <br>drbd status is connected and in sync. Now when i stop heartbeat service on primary server to test failover my primary server gets rebooted. I can see secondary server acquiring virtual ip and mounting the common share but on client i am getting error "permission denied. /mnt/nfs is readonly".<br> <br>Here is my configuration files:<br> <br>[root@PdCuLx0501p ~]# cat /etc/drbd.conf<br>global {<br> usage-count ask;<br>}<br><br>common {<br> syncer { rate 250M; }<br>}<br>resource r0 {<br> protocol B;<br> #incon-degr-cmd "halt -f";<br> startup {<br> degr-wfc-timeout 120; # 2 minutes.<br> }<br> disk {<br> on-io-error detach;<br> }<br> net {<br> }<br> syncer {<br> rate 250M;<br> #group 1;<br> al-extents 257;<br> }<br> on PdCuLx0501p {<br> device /dev/drbd0;<br> meta-disk /dev/sdb2[0];<br> disk /dev/sdb3;<br> address 10.153.80.213:7788;<br> }<br> on PdCuLx0502s {<br> device /dev/drbd0;<br> meta-disk /dev/sdb2[0];<br> disk /dev/sdb3;<br> address 10.153.80.214:7788;<br> }<br>}<br><br> <br>[root@PdCuLx0501p ~]# cat /etc/ha.d/ha.cf<br>logfacility local0<br>keepalive 2<br>deadtime 30<br>bcast eth0<br>node PdCuLx0501p<br>node PdCuLx0502s<br>auto_failback on<br> <br> <br>[root@PdCuLx0501p ~]# cat /etc/ha.d/haresources<br>PdCuLx0501p IPaddr::10.153.80.215/24/eth0 drbddisk::r0 Filesystem::/dev/drbd0::/nfs4exports::ext3 nfslock nfs<br><br><br>[root@PdCuLx0501p ~]# cat /etc/ha.d/authkeys<br>auth 3<br>3 md5 50f4a0bd87aedb051e93b6aa16f1433e<br><br> <br>Now what is the problem in my configuration? Why i am not able to mount files system from client when seconday has acquired primary status and why primary gets restarted on stopping heartbeat service?<br> <br>Regards,<br>Vijay <br> <br> <br> <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110803/a3121d65/attachment.html><br><br>------------------------------<br><br>_______________________________________________<br>drbd-mc mailing list<br>drbd-mc@lists.linbit.com<br>http://lists.linbit.com/mailman/listinfo/drbd-mc<br><br><br>End of drbd-mc Digest, Vol 30, Issue 2<br>**************************************<br><br></div><br></div></body></html>