From owner-freebsd-questions@FreeBSD.ORG Thu Sep 2 11:50:58 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61E32106587B for ; Thu, 2 Sep 2010 11:50:58 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 12DCA8FC12 for ; Thu, 2 Sep 2010 11:50:57 +0000 (UTC) Received: by ywt2 with SMTP id 2so153607ywt.13 for ; Thu, 02 Sep 2010 04:50:57 -0700 (PDT) Received: by 10.151.144.11 with SMTP id w11mr5856610ybn.327.1283428257158; Thu, 02 Sep 2010 04:50:57 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-071-070-144-046.nc.res.rr.com [71.70.144.46]) by mx.google.com with ESMTPS id d5sm904472ybi.9.2010.09.02.04.50.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 04:50:56 -0700 (PDT) Received: from scorpio (zeus [71.70.144.46]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 5D0F4E54826 for ; Thu, 2 Sep 2010 07:50:54 -0400 (EDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.96.2 at scorpio.seibercom.net Date: Thu, 2 Sep 2010 07:50:53 -0400 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20100902075053.4bdb443b@scorpio> In-Reply-To: <4C7F5F25.2010604@itsacon.net> References: <4C7F5F25.2010604@itsacon.net> Organization: seibercom.net X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEX3/uPVnZf2/v9ejGkqHB74++H///+cHCT3m6cgqYvfAAACbElEQVQ4jWXTQW/bIBQAYJLJuRMn8TVCss9zTdrrXJ6bHe1Ej/bossF9EpJ3nbapf3sP8JxOQ4qV8OU9HvjBROWcYNlKHtxlQ1/huBaOBiMwQtgHhbokMLIT76Acps5hvy61+6WsjkCZzNEW0+fcQ7Nl5uoPCegjjjhN5/MEABd89k9hXkQoX6cwPIDKCt8tYG5wpmdrxAyuolTPqpiVoEpVCWvl6e00RAD4JBJQnO4lvv0O4Cnd3WUGevYNFohxFYAy7jCCtW39LaQK8BgDAgiHVinVJlCiFKlcqgEHfwb1EuG+DwFGMO3oCIuJIEYoa8KJECBB+UBldgm0MQmEGz7GQr8XYRPKzYNO1zZ8mgdAu4BG5Ke/4KFboM8458UScViAAvYD93OAsu+Bc3zxCU7ZAjT74+dQv9K7oO0d1wuscop48Pc50O5bcVwgGzh/mXzaizJuAWERh8k3eaxKmxu4kV1p2XOEg3i3c8M+EKR93P0D1KATpC55vMHaGqFf5f/AwhlrhHgg8DTezopt6I3o3Qx4q4q6YaPxK8RxcClXeFGhTTS++QR6TS/oBs7l4WhzuNMubZG6hIBkF4qqZVdWczIqSrjKVF/i4o26IP2oElBGFy5CXKSnf6UWDTC6zKSqoAvzsakjjBvdzLKnmxdhY8eRsX7VSCUBdgD1hVJpx6y2OOS1DNDILYmqdWUJ+oHvd0rRvAqX5kpxQMR6yxHzPV6VlPFyWE7LKc36keNQI64gLP8Ybgtmg+zYuBl4fuI8VqW2RqDGE8Uzu7GxGa803whDdxx3bSZbRhfQUSxvmnpLZWpRFqHz7v8AvsBe0S1zv9UAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: Multiple mount_smbfs commands fail in bash script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 11:50:58 -0000 On Thu, 02 Sep 2010 10:24:05 +0200 Bernard Scharp 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.