The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Disabling nfsv4 on Ubuntu

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andy Delcambre

Posts: 66
Nickname: adelcambre
Registered: Sep, 2007

Andy Delcambre is a developer at PLANET ARGON
Disabling nfsv4 on Ubuntu Posted: Sep 4, 2007 9:41 PM
Reply to this message Reply

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.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Andy Delcambre
Latest Posts From Andy Delcambre

Advertisement

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.


start-stop-daemon --start --oknodo --quiet \
   --nicelevel $RPCNFSDPRIORITY \
   --exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT

So it was simply a case of tacking—no-nfs-version 4 onto RPCNFSDCOUNT in /etc/default/nfs-kernel-server giving me:


# Number of servers to start up
RPCNFSDCOUNT='8 --no-nfs-version 4'

(Eight is the default number of servers)

I hope this helps if you need to do the same.

Read: Disabling nfsv4 on Ubuntu

Topic: Ruby: Creating Custom Assertions Previous Topic   Next Topic Topic: Python, Django and DB2 Status Update

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use