Solved

Stale NFS file handle

Posted on 2004-09-20
5
1,950 Views
Last Modified: 2010-04-21
I have a linux server running rh9 it is also my nis server i have exported /home on my server and i have mounting /home partition on my client by adding it to my /etc/fstab files on my clients. after i have added new clients on my server i am able to login on to my clients but it is ging error frequently "Stale NFS file handle"

Failed:
 Failed:
 Could not make directory "/home/sreekanth/.gconf/apps/evolution/mail": Stale NFS file handle

pls help me in this matter
0
Comment
Question by:Toneys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 38 total points
ID: 12103220
What's happened here is that the client computer has lost contact with the NFS server for a long enough time to cause the NFS file handle to be marked as stale. The only solution to that is to reboot the client computer.

FYI: A better way to do this is to auto mount home directories "on demand". This can be done, and incorporated into the NIS maps, using autofs or amd auto mounter. Since home dirs will then only be mounted when accessed and dismounted when not in use the chances of encounting this problem are reduced.
0
 
LVL 2

Assisted Solution

by:dfk
dfk earned 37 total points
ID: 12103336
what options have you used for mounting the /home filesystem on your clients (cat /etc/fstab)?

from mount(8)
<snip>
       -F     (Used  in  conjunction  with -a.)  Fork off a new incarnation of
              mount for each device.  This will do  the  mounts  on  different
              devices  or  different  NFS  servers  in parallel.  This has the
              advantage that it is faster; also NFS timeouts go in parallel. A
              disadvantage  is  that  the  mounts are done in undefined order.
              Thus, you cannot use this option if you want to mount both  /usr
              and /usr/spool.
</snip>

You should probably consider mounting the nfs mount using the options 'intr' and 'hard'

server:/share/homes /home nfs rw,hard,intr 0 0

Hope that helps
Best Regards
Mark Waterhouse
DFK Systems Limited
http://www.dfk-systems.com/
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question