LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2012, 03:28 PM   #1
tstein
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Re-mounting fstab cifs shares with crontab every 30 seconds?


I have a debian server which on bootup mounts cifs shares from another server in my network. From time to time, the server2 might reboot or for one reason or another the debian server boots up before server2.

Would there be any harm in running "mount -a" on a pretty frequent basis (say ever 30 seconds)? Or is there a better way to solve this?
 
Old 08-12-2012, 04:09 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,887

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Quote:
Originally Posted by tstein View Post
I have a debian server which on bootup mounts cifs shares from another server in my network. From time to time, the server2 might reboot or for one reason or another the debian server boots up before server2.

Would there be any harm in running "mount -a" on a pretty frequent basis (say ever 30 seconds)? Or is there a better way to solve this?
Don't know, but I can't see how that would be a GOOD thing to do. Why don't you put a file out on the network share, then write a script to open/check for that file? If it's not found/inaccessible, THEN perform a force-dismount then remount.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting CIFS shares in Linux myxtreamer meathook2 Linux - Distributions 2 04-13-2011 03:24 PM
fstab smbfs mount is really mounting as cifs?? jmpetre Linux - Newbie 1 09-03-2009 05:26 PM
Problem with mounting CIFS from /etc/fstab Rostfrei Linux - Networking 6 06-03-2008 02:47 PM
LXer: Automatically mounting and unmounting Samba/Windows shares with CIFS LXer Syndicated Linux News 0 07-27-2007 11:01 AM
mounting SMB/CIFS shares from FreeBSD scott2004 *BSD 2 10-21-2006 12:09 PM


All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration