On Tuesday, 10 בOctober 2006 01:07, guy keren wrote:
> NFS soft-mounting means data could be lost. 

I beg to differ. Both type of mount may loose data on
different scenarios:
 * With hard mount -- the client machine retries forever and never
   return an error to the application. If the server is lost
   (e.g: disconnected), than applications that try to access nfs paths
   (e.g: chdir into one) will irrevocably hang (in 'D' state).
   The only way out of this (if the server does not come back) is a
   reboot of the client machine.
   Result: data loss and machine reboot.
 * With soft mount -- an error will be returned to the application.
   As you pointed out, it's the application responsibility to handle it.
   Possible result: data loss if the application is badly written
   (doesn't check return values).

> you never use this option on 
> a production host that serves important data. instead, you make sure the
> server it mounted the file-system from, is more reliable then the server
> mounting the NFS share.

Agreed. In this case we accept the following trade off:
  "better hang many applications in the client machine
   and require a complete reboot of this machine to recover,
   than to trust all the applications to be written correctly".

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

Promises are like babies: fun to make, but hell to deliver.
                           -- Nadav Har'El

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to