<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 08/03/2011 09:12 AM, vijay patel wrote:
<blockquote cite="mid:BLU139-W869086011A5EB71EBFBF6B63A0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<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
moz-do-not-send="true" 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?</div>
</blockquote>
<br>
Have you tried stopping NFS and unmounting by hand?<br>
<br>
I have seen recent NFS bugs where it can't unmount it after you stop
NFS (NFS doesn't release all its references to the filesystem).<br>
<br>
With pacemaker, and STONITH configured, then that will cause the
system to reboot. But, for old-style haresources, I don't know what
would cause that.<br>
<br>
But I would do this test by hand and see what result you get.<br>
<br>
<pre class="moz-signature" cols="72">--
Alan Robertson <a class="moz-txt-link-rfc2396E" href="mailto:alanr@unix.sh"><alanr@unix.sh></a>
"Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions." - William Wilberforce
</pre>
</body>
</html>