I think man nfs it's can help you<br><br>Try to look your nfs client options<br><br><div class="gmail_quote">2012/1/15 Dennis Jacobfeuerborn <span dir="ltr"><<a href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm trying to build a HA nfs system based on drbd and apart from the nfs export everything is working fine. The problem is that when I force a failover things seem to work fine yet when I fail back to the original system the clients freeze for a very long time.<br>
<br>
/mnt/tmp is the mountpoint on the client and I'm using the following to test access:<br>
for i in `seq 1 2000`; do echo $i; ls /mnt/tmp; sleep 1; done<br>
<br>
on a failover the output look like this:<br>
<br>
...<br>
47<br>
testfile testfile2<br>
48<br>
testfile testfile2<br>
49<br>
testfile testfile2<br>
50<br>
testfile testfile2<br>
51<br>
testfile testfile2<br>
52<br>
ls: cannot open directory /mnt/tmp: Permission denied<br>
53<br>
ls: cannot open directory /mnt/tmp: Permission denied<br>
54<br>
<<< freeze of several minutes >>><br>
testfile testfile2<br>
55<br>
testfile testfile2<br>
56<br>
testfile testfile2<br>
...<br>
<br>
The first question I have is how can I prevent the "Permission denied" errors? If these occur on e.g. a mountpoint for MySQL for example this will no doubt lead to problems with the database and that means the storage isn't really redundant.<br>
<br>
The second question is how do I reduce the failover time? I tried adding timeo=30 to the client mount options but that doesn't seem to help.<br>
<br>
This is what my cib looks like:<br>
<br>
node storage1.dev<br>
node storage2.dev<br>
primitive p_drbd_nfs ocf:linbit:drbd \<br>
params drbd_resource="nfs" \<br>
op monitor interval="15" role="Master" \<br>
op monitor interval="30" role="Slave"<br>
primitive p_exportfs_data ocf:heartbeat:exportfs \<br>
params fsid="1" directory="/mnt/data/export" options="rw,no_root_squash" clientspec="*" \<br>
op monitor interval="30s"<br>
primitive p_fs_data ocf:heartbeat:Filesystem \<br>
params device="/dev/drbd/by-res/nfs" directory="/mnt/data" fstype="ext3" \<br>
op monitor interval="10s"<br>
primitive p_ip_nfs ocf:heartbeat:IPaddr2 \<br>
params ip="192.168.2.190" cidr_netmask="24" \<br>
op monitor interval="30s"<br>
group g_nfs p_fs_data p_exportfs_data p_ip_nfs<br>
ms ms_drbd_nfs p_drbd_nfs \<br>
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"<br>
colocation c_nfs_on_drbd inf: g_nfs ms_drbd_nfs:Master<br>
order o_drbd_before_nfs inf: ms_drbd_nfs:promote g_nfs:start<br>
property $id="cib-bootstrap-options" \<br>
dc-version="1.0.12-unknown" \<br>
cluster-infrastructure="<u></u>openais" \<br>
expected-quorum-votes="2" \<br>
stonith-enabled="false" \<br>
no-quorum-policy="ignore"<br>
rsc_defaults $id="rsc-options" \<br>
resource-stickiness="200"<br>
<br>
Regards,<br>
Dennis<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>