Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stale NFS file handle

Status
Not open for further replies.

johny2K

Technical User
Dec 19, 2001
184
CA
hi experts,

i'm using RedHat 9... i have 3 mounted file systems:

1. df -k, shows

xxx:/aaa 1 1 1 0% /aaa
xxx:/bbb 1 1 1 0% /bbb
xxx:/ccc 1 1 1 0% /ccc

2. changing directory resulted in

cd /aaa

[feet@you aaa]# ls
ls: .: Stale NFS file handle

do re-booting the system will work for this problem?

i tried umount and mount - didn't work, instead i lost /aaa when using command df -k[/b}.



 
Are these mounted filesystems mounted from an NFS server? If so, have you tried restarting the NFS daemon on the NFS server?

Copy and paste the output of "mount" and "df -h". If you have these filesystems listed in /etc/fstab, lets see them too.


ChrisP
 
yes... these FSs are from the NFS server.

i read some Q&A from different user groups - i ended up re-booting the system. and IT WORKS!

some says, might be a bug for RH9. can anyone have same opinion here? no sweat - it's working anyways.

thanks.

 
Actually it is not a bug. That is the nature of NFS. NFS is a stateless protocol and you lost connection to the server, but your client still thinks it was mounted. If you can mount with -soft option. It will help prevent this.

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
thank you.

but once it happens, you can't actually recover from this problem? i mean, putting NFS back online?

i almost tried everything, umount/mount - and as i mentioned earlier, re-booting got it work. also - right now, it is mounted but it's not showing when i tried to view mount FSs with "df -k"

 

Yes, you can just turn the NFS server back on and it will work.

Don't mount with the soft option you just risk losing data.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
hello,

just a feedback.

turning off/on the nfs will not solve the problem (stop/start) - for unknown reason. i tried it before re-booting the system.

 
erratum:

you are right henrik - it works. i happened again and i just re-start the nfs (service nfs stop, umount fs, start & mount again).

sorry - i must've done something i missed the first time - the reason it didn't work.

this is just a final feedback.

thanks again.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top