1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

How to set-up reliable NFS server

Discussion in 'General Server' started by MitchL, Dec 9, 2013.

  1. MitchL

    MitchL New Member

    Dec 9, 2013
    Likes Received:
    We have 2 server machines (Server1, Server2), they backup each other using keepalived. We have NFS servers (nfs-kernel-server) running on each of servers.
    We have a client PC which mounts NFS share like this:
    Code: on /misc/acsd type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=1200,retrans=2,sec=sys,clientaddr=,local_lock=none,addr= - is a keepalived interface for both servers.
    When we shut down Server1 - NFS mounting breaks like this:
    ls: cannot open directory .: Stale NFS file handle
    If we remount just after this - everything works ok, I can see files from Server2. Something breaks when keepalived switches servers.
    Is there a way to fix that?

  2. grim76

    grim76 Active Member Staff Writer

    Nov 21, 2011
    Likes Received:
    You need to export the location with the fsid option. Once you do that and remount it things should fail over properly. Make sure that since you are using NFSv4 not to use the fsid=0.

Share This Page