Showing posts with label nfs. Show all posts
Showing posts with label nfs. Show all posts

Monday, July 17, 2006

smart way to mount NFS file system

sometimes NFS mount point can hang when you do a listing (ls -al) due to certain reasons such as server down, network problems etcetera.

to avoid this is it advisable to make the mount point down one level of root.

instead of:
# mount NFS_server:/data /data
in this case, if the mount point hang,
# ls -al /
would take a long time until the NFS mount timed out.

you should do:
# mount NFS_server:/data /new_directory/data
so if the mount point hang, you can still do listing of root.
# ls -al /
would work fine just that
# ls -al /new_directory
would fail.