[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Zugiff auf home nicht möglich



Am Thu, 14 Jun 2012 19:26:42 +0000 (UTC)
schrieb Jürgen Baausa <Juergen.Bausa@online.de>:

> Gibt es eine fstab/mount-option die bewirkt, dass bei einem Zugriff 
> nur kurze Zeit gewartet wird, falls der server nicht antwortet? Oder 
> automatisch mount/umount ausführt, je nachdem, ob der server verfügbar 
> ist oder nicht?

man -LC 5 nfs

      soft / hard     Determines the recovery behavior of the NFS client after
                      an  NFS  request times out.  If neither option is speci‐
                      fied (or if the hard option is specified), NFS  requests
                      are  retried indefinitely.  If the soft option is speci‐
                      fied, then the NFS client fails  an  NFS  request  after
                      retrans  retransmissions have been sent, causing the NFS
                      client to return an error to the calling application.

                      NB: A so-called "soft" timeout  can  cause  silent  data
                      corruption  in  certain  cases.  As  such,  use the soft
                      option only when client responsiveness is more important
                      than  data  integrity.  Using NFS over TCP or increasing
                      the value of the retrans option may mitigate some of the
                      risks of using the soft option.

Wenn man, weiss warum der Prozess hängt, reicht es vielleicht ihn zu killen:

       intr / nointr  Selects whether to allow signals to interrupt file oper‐
                      ations on this mount point. If neither option is  speci‐
                      fied  (or  if  intr  is  specified), system calls return
                      EINTR if an in-progress NFS operation is interrupted  by
                      a signal.  If nointr is specified, signals do not inter‐
                      rupt NFS operations.

                      Using the intr option is preferred  to  using  the  soft
                      option because it is significantly less likely to result
                      in data corruption.

                      The intr / nointr mount option is deprecated after  ker‐
                      nel  2.6.25.   Only  SIGKILL can interrupt a pending NFS
                      operation on these kernels, and if specified, this mount
                      option  is  ignored  to  provide backwards compatibility
                      with older kernels.

Grüße
Michael





Reply to: