Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.