[Linux-HA] NFS serving on Ubuntu and 2.6

Nelson Castillo nelsoneci at gmail.com
Tue Oct 18 10:17:03 MDT 2005

> I think that sharing /var/lib/nfs is no good for me. In fact
>there is no directory or file on the whole /var directory
>with "nfs" on it!

Weird. You don't describe what kind of HA
solution you're setting up.

Does it work at all?
Are you using DRBD?

I've only set up 1 HA-NFS server using DRBD and I
got the stale filehandle issue on failover. It would last
a few seconds.

> Most examples I have seen use nfs-kernel-server. What a difference does
> it make?

I also used nfs-kernel-server.

I would get the stale filehandle on failover until I
patched the nfs-kernel-server init script.

--- /etc/init.d/nfs-kernel-server       2003-08-03 20:38:55.000000000 -0500
+++ nfs-kernel-server   2005-05-10 20:16:19.437175064 -0500
@@ -80,6 +80,17 @@

       printf "Unexporting directories for $DESC..."
       $PREFIX/sbin/exportfs -au
+  # We start here
+  sleep 5
+  start-stop-daemon --stop --oknodo --quiet \
+      --name nfsd --user 0 --signal 9
+  # We end here

Script here: (taken from sarge in March).


Homepage : http://geocities.com/arhuaco

The first principle is that you must not fool yourself
and you are the easiest person to fool.
     -- Richard Feynman.

More information about the Linux-HA mailing list