Solved

Stale NFS file handle

Posted on 2004-09-20
5
1,941 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

752 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