Date: Thu, 2 Sep 2010 07:50:53 -0400 From: Jerry <freebsd.user@seibercom.net> To: freebsd-questions@freebsd.org Subject: Re: Multiple mount_smbfs commands fail in bash script Message-ID: <20100902075053.4bdb443b@scorpio> In-Reply-To: <4C7F5F25.2010604@itsacon.net> References: <4C7F5F25.2010604@itsacon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 02 Sep 2010 10:24:05 +0200 Bernard Scharp <freebsd-questions@itsacon.net> articulated: > Hi all, > > I'm having some problems with a bash script. > > It's a backup script that periodically checks if a list of systems is > online, and if so, uses samba to mount a specified list of shares, > rsyncs them to a local directory and unmounts again. > > This used to run fine till a few months ago (I don't know what the > trigger was that caused them to first fail). > > Now, when the script is run, it gives the following error when > mounting the shares: > > mount_smbfs: can't get handle to requester (no /dev/nsmb* device) > > Which is strange, as there are (by last count) 1170 /dev/nsmb* devices > in /dev/ (is that normal?) > > Searching the internet, FreeBSD and Samba mailing lists gave me no > recent info, and the old info wasn't helpful. > > I've narrowed it down to the point where I think it's caused by one > process trying to open two (or more) shares at the same time. (a > simple script mounting two shares gives the same error). > > I can mount the shares from the command line without problems, it's > only in the bash script it gives me problems. > > ~/.nsmbrc and /etc/nsmb.conf are correct, smbd, nmbd and winbindd are > running. The system is FreeBSD 8.0 Stable. > > Anyone got any suggestions? Could you post the script? Anything else would be pure guess work. You also might consider posting this on the "BASH" mail forum: bug-bash@gnu.org although you might have to subscribe first: http://lists.gnu.org/mailman/listinfo/bug-bash -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Vital papers will demonstrate their vitality by spontaneously moving from where you left them to where you can't find them.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100902075053.4bdb443b>