Reconnect Attempts for CIFS share

8,383

The hard mount option is (similiar to NFS) avoiding to return errors to the clients when servers are unresponsive. (Default seems to be the soft option). Add this to your /etc/fstab and remount it (or reboot).

See the man page: http://linux.die.net/man/8/mount.cifs

Share:
8,383

Related videos on Youtube

Chopper3
Author by

Chopper3

Updated on September 18, 2022

Comments

  • Chopper3
    Chopper3 over 1 year

    I have a CIFS share mounted in the FSTAB on Ubuntu server, which connects to our NAS and works without issue. Last night we had an issue with the SAN for about 12 hours. We corrected the problem and the Windows boxes restored their mappings. The Ubuntu box did not, but we were able to restore with mount -a.

    I saw options to specify retries in man for NFS but not CIFS. Any ideas on ensuring a reconnect if the NAS goes down again?

  • Zitrax
    Zitrax over 7 years
    How will that help with retry/reconnect ?
  • Aaron Hudon
    Aaron Hudon over 7 years
    It will retry forever.
  • JeffRSon
    JeffRSon over 5 years
    Does it? I see no change whether "hard" or "soft" is used or left out at all. Any experience with this?
  • Aaron Hudon
    Aaron Hudon over 5 years
    No, I only have experience with NFS where hard is honored. It is defined to retry forever but I dont know if it does.