<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
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 <A href="mailto:buildsvn@c5-x8664-build">buildsvn@c5-x8664-build</A>, 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>                                            </div></body>
</html>