Lesson 6

Date: 2/19/2014
Network File System (NFS)
Linux for Engineering and IT Applications


Exercise: Stale NFS file handle
On the NFS server, master, create a new directory tree under NFS exported directory:
mkdir -p /NFS/home/test/demo
On the client, n01, step into the directory:
cd /NFS/home/test
ls
On the NFS server, master, remove directory test with its subdirectory:
cd /NFS/home
rm -rf test 
On the client, run
ls
It should give you the following error:
ls: cannot open directory .: Stale NFS file handle
Step out of the NFS mounted directory:
cd /
The autofs will unmount the NFS directory after the inactivity period, one minute in our case. Next time the NFS is mounted, it will contain the updated directory tree.



Take me to the Course Website