Wednesday, August 12, 2009

Soft vs. Hard Mounting in NFS Server.

Soft Mounting-
If a file request fails, the NFS client will report an error to the process on the client machine requesting the file access. Some programs can handle this with composure, most won't. We do not recommend using this setting; it is a recipe for corrupted files and lost data. You should especially not use this for Mail Server.
If you want to use soft mounting.use timeo option with it.,the timeo option to set a timeout interval, in tenths of a second.
e.g.
mount -o soft,timeo=300 rahul:/home /mnt/rahulhome

Hard Mounting-


The program accessing a file on a NFS mounted file system will hang when the server crashes. The process cannot be interrupted or killed (except by a "sure kill") unless you also specify intr. When the NFS server is back online the program will continue undisturbed from where it was. We recommend using hard,intr on all NFS mounted file systems.

Picking up the from previous example, the fstab entry would now look like:
# device mountpoint fs-type options dump fsckord

rahul.pooja.com:/home /mnt/rahulhome nfs rw,hard,intr 0 0

No comments:

Post a Comment