I think man nfs it&#39;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">&lt;<a href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I&#39;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&#39;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>
&lt;&lt;&lt; freeze of several minutes &gt;&gt;&gt;<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 &quot;Permission denied&quot; 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&#39;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&#39;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=&quot;nfs&quot; \<br>
        op monitor interval=&quot;15&quot; role=&quot;Master&quot; \<br>
        op monitor interval=&quot;30&quot; role=&quot;Slave&quot;<br>
primitive p_exportfs_data ocf:heartbeat:exportfs \<br>
        params fsid=&quot;1&quot; directory=&quot;/mnt/data/export&quot; options=&quot;rw,no_root_squash&quot; clientspec=&quot;*&quot; \<br>
        op monitor interval=&quot;30s&quot;<br>
primitive p_fs_data ocf:heartbeat:Filesystem \<br>
        params device=&quot;/dev/drbd/by-res/nfs&quot; directory=&quot;/mnt/data&quot; fstype=&quot;ext3&quot; \<br>
        op monitor interval=&quot;10s&quot;<br>
primitive p_ip_nfs ocf:heartbeat:IPaddr2 \<br>
        params ip=&quot;192.168.2.190&quot; cidr_netmask=&quot;24&quot; \<br>
        op monitor interval=&quot;30s&quot;<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=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;<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=&quot;cib-bootstrap-options&quot; \<br>
        dc-version=&quot;1.0.12-unknown&quot; \<br>
        cluster-infrastructure=&quot;<u></u>openais&quot; \<br>
        expected-quorum-votes=&quot;2&quot; \<br>
        stonith-enabled=&quot;false&quot; \<br>
        no-quorum-policy=&quot;ignore&quot;<br>
rsc_defaults $id=&quot;rsc-options&quot; \<br>
        resource-stickiness=&quot;200&quot;<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>