|
From: Steve C. <cam...@cn...> - 2006-10-31 20:38:47
|
Kris, ----- Original Message ----- From: "Kris Deugau" <kd...@vi...> To: "Webmin users list" <web...@li...> Sent: Tuesday, October 31, 2006 3:07 PM Subject: Re: [webmin-l] Samba question - keeping the mount mounted > Steve Campbell wrote: >> I have looked through as much Samba literature as I can find, but cannot >> seem to find out why a mount that I have created using webmin from a RH >> EL 3 >> box to a Buffalo Terrabyte NAS server does not stay mounted. > > Mmmh. Strictly speaking, it stays mounted, but goes dormant or > disconnected. > > This SHOULD, IIRC, be entirely hidden from userland. I see similar > behaviour on a W2K box mounting a number of Samba shares; after an > indefinite amount of idle time, Windows considers the share inactive in > some way, and shows its icon in My Computer with a red X over it. > > I'm not sure it's *possible* to disable the "properly" (AKA stop the > client and/or server from dropping garbage into userland, or considering > a share "disconnected" when it hasn't been explicitly removed), but... > >> I realize this is OT for this list, but hope someone has run into this >> before. I can usually use a command before running the apps in a shell >> file, >> and it only needs to be something as simple as 'df' to wake it up, but on >> long running jobs, such as backups that create temp files before writing, >> it >> may go back to sleep before it can be re-awakened. > > Find out how long it takes for the mount to go to sleep. Add a cron job > to touch a file or run ls (or something that accesses content on the > mount) set to run at a shorter interval than the sleep time. This is a good thought-provoking idea. The main purpose of this Samba NAS is for Mondo backups, so the 'df' that I run now just before each ISO is written should do the trick, but doesn't always for some reason. A general 'df' every 10 minutes or so in crontab would cause the log errors to go away also. I was hoping for a more technical solution, but the simple, obvious stuff is usually better as to 'fixing' things. I'm thinking of using this for Bacula also, and the cron job would probably take care of that also. Thanks so much. Steve > > NFS is fractionally more stable in this kind of arrangement; you might > also want to see if you can use NFS instead of CIFS/SMB. > > -kgd > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |