Tune and Tweak NFS for Top Performance - Page 2

By  Charlie Schluting | Mar 24, 2005
Page 2 of 2   |  Back to Page 1
Print ArticleEmail Article
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

Continued From Page 1

Auto Mounters
The automounter will allow a remote file system to be mounted on-demand, so that the client doesn't need to keep hundreds of NFS mounts open all the time. This feature adds to NFS's scalability, making it possible to have thousands of remote file systems accessible from a client.

In some Linux distributions, an automounter may already be running. When you insert a CD, the directory /cdrom magically contains the contents of the CD. This is basically how autofs works.

To set it up, automount maps need to be created. This is basically a listing of directory (to mount it in) and server:directory to mount. A common setup will have /etc/auto.master referencing files or NIS maps that list the directories to mount. NIS is a wonderfully complex beast that can synchronize users and centralize things like automounter maps, and is way beyond the scope of this NFS article.

Back to NFS, let's view a common setup. In auto.master we have:

/import /etc/autofs/auto.import

This tells autofs to look at auto.import when something needs to be accessed in the file system's /import. In the auto.import file, we'd have:

test 192.168.0.1:/usr

So, when autofs realizes that /usr from the server is not mounted in /import/test, it will simply go ahead and mount it for us. Using the command ls /import will not cause it to be mounted, leading to some confusion at first. Running cd /import/test will cause it to be mounted, however. When sharing all user's home directories to all clients, automounting becomes very important, so that clients don't have too many open NFS mounts unnecessarily. Autofs is highly configurable, but this is the basic method of how it operates.

Comment and Contribute
(Maximum characters: 1200). You have
characters left.
Get the Latest Scoop with Enterprise Networking Planet Newsletter
Helpful Links
  • Yankee Group Mobile WAN Optimization Report

    Mobile work continues to evolve. Your organization must keep up with the demands of its mobile workforce. This report introduces the concept of mobile WAN optimization and provides three case studies including RCM, PRTM and Einstein that highlight how this emerging technology can help IT departments achieve what previously appeared to be conflicting goals. Read >

  • Network Security Resources

    More threats than ever before pose a danger to today's enterprise network. Get the latest tips and intel on the newest risks in our guide to network security resources. Read >

  • Extreme Savings: Cutting Costs with WAN Optimization

    Did you know it's possible to cut IT costs without impacting day-to-day IT operations? In fact, when you download this whitepaper from Riverbed on cost-savings through WAN optimization, you'll discover how businesses of all different sizes have realized a return on investment in just a few months through significant hard cost savings in areas such as bandwidth reduction and IT consolidation. It's called Extreme Savings and its only from Riverbed. Read >