This post originated from an RSS feed registered with Ruby Buzz
by Andy Delcambre.
Original Post: Disabling nfsv4 on Ubuntu
Feed Title: Andy Delcambre
Feed URL: http://feeds.feedburner.com/andydelcambre
Feed Description: Andy has been using Ruby and Ruby on Rails since 2006 and has been working with Ruby on Rails professionally since June 2007.
We had an issue where the nfs server on linux didn’t play nice with solaris client because the solaris clients will try nfsv4 first then fall back to nfsv3. The problem is that by default most linux nfs servers do both v3 and v4 so it answers the v4 request witha failure, so the solaris clients never fall back. Unfortunately it isn’t well documented how to disable v4.
The basic solution is to pass—no-nfs-version 4 to rpc.nfsd when it starts. The normal place to add this is /etc/default/nfs-kernel-server, but there is no NFSDARGS variable in there. A quick look in the init script shows that the contents of $RPCNFSDCOUNT are passed directly to rpc.nfsd.