[Samba] Samba hanging from time to time

2008-01-30 Thread Benedict White
I am having some trouble with Samba. It was working fine on an old server with 
3.0.21.

Now I have updated to 3.0.28 (via 3.0.25) and a bigger fatter faster server.

There are two problems. Firstly the new server seems slower than the old one, 
and some users 
are experiencing intermittent data loss via MS apps such as Word or Excell 
crashing.

The system runs on Arch Linux, with a slightly modified package to include 
winbind.

The smb.conf file reads as follows:

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2006/12/18 17:27:22

[global]
workgroup = somegroup
interfaces = eth0, lo
bind interfaces only = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n 
*Password*changed*
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
syslog = 0
log file = /var/log/samba/%M
max log size = 50
smb ports = 139
name resolve order = wins bcast hosts lmhosts
time server = Yes
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
logon script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = P:
logon home = \\%L\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
utmp = Yes
idmap uid = 2-3
idmap gid = 2-3
template homedir = /home/winnt/%D/%U
template shell = /bin/bash
winbind enum users = No
winbind enum groups = No
winbind use default domain = Yes
map acl inherit = Yes
cups options = Raw
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8576 
SO_SNDBUF=8576
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[printers]
comment = SMB Print Spool
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
default devmode = Yes
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = Yes
locking = No

[profiles]
comment = Profile Share
path = /home/samba/profiles
read only = No
profile acls = Yes

[Accounts]
comment = Accounting Files
path = /home/data/accounts
force group = accounts
read only = No
create mask = 0770
directory mask = 0770
force directory mode = 0770

[general]
comment = General file area
path = /home/data/general
read only = No
create mask = 0774
force create mode = 0770
directory mask = 0775
force directory mode = 0770

[hr]
comment = Human Resource
path = /home/data/hr
valid users = @hr
force group = hr
read only = No
create mask = 0774
force directory mode = 0770

##Ends

Now I managed to get a report of an error which left a trace in a log file 
showing some errors which are here:

Sorry about the length of the extracts, but there seem to be two types of 
different errors including:
sys_acl_set_file type file failed
smb_set_file_dosmode: file_set_dosmode ... (Operation not permitted)



[2008/01/30 13:00:44, 2] smbd/open.c:open_file(391)
  user1 opened file somedata/ADMIN/some directory/2008/~WRD3964.tmp read=Yes 
write=Yes (numopen=5)
[2008/01/30 13:00:44, 2] smbd/open.c:open_file(391)
  user1 opened file somedata/ADMIN/some directory/2008/A file name 33 chars 
long 080130.doc read=No write=No (numopen=6)
[2008/01/30 13:00:44, 2] smbd/close.c:close_normal_file(406)
  user1 closed file somedata/ADMIN/some directory/2008/A file name 33 chars 
long 080130.doc (numopen=5) NT_STATUS_OK
[2008/01/30 13:00:44, 2] smbd/open.c:open_file(391)
  user1 opened file somedata/ADMIN/some directory/2008/~WRD3964.tmp read=No 
write=No (numopen=6)
[2008/01/30 13:00:44, 2] smbd/posix_acls.c:set_canon_ace_list(2496)
  set_canon_ace_list: sys_acl_set_file type file failed for file 
somedata/ADMIN/some directory/2008/~WRD3964.tmp (Operation not supported).
[2008/01/30 13:00:44, 2] smbd/close.c:close_normal_file(406)
  user1 closed file somedata/ADMIN/some directory/2

[Samba] Samba hanging

2004-10-29 Thread Philip Washington
On 3 occasions in the last 2 week  my  samba server has hung up.  It has 
occurred each time when I am  trying to do a full backup copy of the 
file server. 

It appears to be happening at the same place, I'm guessing based on the 
number of files which are being transfered.When I look at the rsync 
which is running  I just see a long line of files with I/O errors.

When I try to shutdown smb, I can't.
#service smb stop
Shutting down smb   [Failed]
Shutting down nmb   [Failed]
When I look at
#ps -aux|grep smbd
I get a long list of pid's.  Whenever I try to kill one of these pid's with
kill x
or kill -9 x
or kill -15 x
killall smbd
nothing happens.  I then have to reboot.  I have been running this 
system for 2 years and it just started this.  Any ideas?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba