My problem appears to be too simple to be addressed in the documentation, being a linux-to-linux problem. This is a mixed home lan, but the majority of file sharing is done between three linux boxes. All three have a public directory, but the one on box1 is mainly used for file sharing. All of this worked well with our old Samba 2 setup, but has now gone to pieces. Two of the boxes are using Samba 3.0.6 and one 3.0.7. Taking box1, then, as the most important one, other than /homes there are two shares declared: [home91] comment = home91 path = /mnt/home91 valid users = anne david writable = yes browseable = yes [public] browseable = yes comment = Anne-Linux Public writable = yes path = /Public force group = 100 The first one appears to work well. The second one, though, is problematic. It is possible to mount the share and write to the directory, but I cannot umount. I get the error that the device or resource is busy. The share disappears from the mount point, but it still shows in either smb4k or LinNeighborhood as being mounted, and any further attempt to mount it reports that it is already mounted. The 'force group' line has been added because the logs showed that david, for instance was accessing as david:david, and I wondered if the group was part of the problem. /Public was initiall anne:users, though I have now changed it to root:users. Any suggestions for troubleshooting would be gratefully received. Anne -- Registered Linux User No.293302 Have you visited http://twiki.mdklinuxfaq.org yet?
On Wednesday 20 Oct 2004 20:59, you wrote:> Are you using Debian? > If so, try setting > use sendfile = no > in global sectionNo, box1 and box2 are Mandrake 10.0 and box3 is Mandrake 10.1. Here is my global section: [global] workgroup = lydgate.net server string = Samba Server %v netbios name = anne-linux name resolve order = hosts bcast # wins support = yes printcap name = cups printing = cups log file = /var/log/samba/log.%m smb passwd file = /etc/samba/smbpasswd username level = 8 encrypt passwords = yes max log size = 50 #hosts allow = 192.168.0.0/24 127.0.0.1 # unix password sync = yes socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 security = user preferred master = yes domain master = yes local master = yes os level = 65 server signing = disabled map to guest = bad user Anne -- Registered Linux User No.293302 Have you visited http://twiki.mdklinuxfaq.org yet?
On Thursday 21 Oct 2004 15:47, Holger Krull wrote:> >>By the way what is the output of > >>lsof /Public > >>that means is there really someone working on it? > > > > lsof /Public > > lsof: WARNING: can't stat() smbfs file system > > /home/anne/smb4k/DAVID/Public Output information may be incomplete. > > COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME > > smbd 31553 root cwd DIR 33,12 4096 48961 /Public > > That looks odd, is this lsof on the client side or server side?This lsof on the server.> How do you mount on the client?In this case, using smb4k, but using LinNeighborhood gives the same symptoms, though I haven't tried the lsof command with a directory locked up.> Are you resharing a smb mounted directory?No. /Public is a directory on this box, the server, purely for file sharing and available to all. At the moment only one box is mounted, the one that can't umount. Anne -- Registered Linux User No.293302 Have you visited http://twiki.mdklinuxfaq.org yet?
On Friday 22 Oct 2004 09:48, Holger Krull wrote:> >>>lsof /Public > >>>lsof: WARNING: can't stat() smbfs file system > >>>/home/anne/smb4k/DAVID/Public Output information may be incomplete. > >>>COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME > >>>smbd 31553 root cwd DIR 33,12 4096 48961 /Public > >>> > > In this case, using smb4k, but using LinNeighborhood gives the same > > symptoms, > > > though I haven't tried the lsof command with a directory locked up. > > > >>Are you resharing a smb mounted directory? > > > > No. /Public is a directory on this box, the server, purely for file > > sharing and available to all. At the moment only one box is mounted, the > > one that can't umount. > > Hmm, but why then is lsof speaking of a smbfs file system? > If you share /Public but lsof speaks of /home/anne/smb4k/DAVID/Public, > is /Public a link then?/home/anne/smb4k/DAVID/Public is the mountpoint on the box that is trying to umount access to /Public on this box. Anne -- Registered Linux User No.293302 Have you visited http://twiki.mdklinuxfaq.org yet?
On Friday 22 Oct 2004 16:11, Holger Krull wrote:> > /home/anne/smb4k/DAVID/Public is the mountpoint on the box that is trying > > to umount access to /Public on this box. > > I have now idea why the server should know anything about the client > mountpoint. I suspect something wrong there. But i mount by hand or > fstab.Could you give me an example mount line? I've never hand-mounted anything like an smbfs.> Btw what does mount say on your client? >none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) //ANNE-LINUX/public on /home/david/smb4k/ANNE-LINUX/public type smbfs (0)> But i now found a system where a error similar to yours has been > reported. That means problems unmounting, disapearing mountpoint and > io-errors on accessing the mounted dir. But so far now reliable way to > reproduce it on that system (it is a debian sarge client, samba on the > server is 3.06).At least there is one common point there, we both have 3.0.6 on the server.> We suspect network errors as the cause of the problem, but nothing solid > yet. > Adding > SO_KEEPALIVE > to the socket options seems to help.OK - I've put that in, but it doesn't seem to help. In case I have not made it clear - From the client - open smb4k Mount /Public - OK Umount /Public - OK Mount /Public - OK Browse /Public - OK Umount /Public - will not umount - device or resource busy! HTH Anne -- Registered Linux User No.293302 Have you visited http://twiki.mdklinuxfaq.org yet?