View previous topic :: View next topic |
Author |
Message |
MorpheuS.Ibis Tux's lil' helper
Joined: 22 Apr 2006 Posts: 143
|
Posted: Tue Mar 24, 2009 4:58 pm Post subject: Samba kills the machine |
|
|
Hi, I have a problem, samba (tried many versions from 3.0.23 to 3.3.2) randomly starts to use 100% cpu in one thread, gradually killing the machine (it has 4 cpus but that doesn't help). this one process is of smbd, running as uid 0, and is unresponsive to kills (both sigterm and sigkill).
I have been unable to determine what causes this, but i have logs from samba for the times of the crashes (have not found anything useful though)
anyone any hint? please? |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Mar 25, 2009 5:45 am Post subject: |
|
|
Are you using smbfs or cifs in your kernel? If smbfs, update to cifs. If cifs, make sure to emerge -av mount-cifs. Is smbfs or cifs loaded as a module, or compiled into the kernel? What does your /etc/samba/smb.conf look like?
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
MorpheuS.Ibis Tux's lil' helper
Joined: 22 Apr 2006 Posts: 143
|
Posted: Wed Mar 25, 2009 2:41 pm Post subject: |
|
|
the problem is not in smb.conf (it is copied from another machine that worked for several years), and I am not using mounting samba shares on that PC (it is purely a server) |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Mar 25, 2009 6:38 pm Post subject: |
|
|
If you have a problem, nothing is a known good until it's shown good. Assumption doesn't fix computers.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
MorpheuS.Ibis Tux's lil' helper
Joined: 22 Apr 2006 Posts: 143
|
Posted: Wed Mar 25, 2009 7:13 pm Post subject: |
|
|
well, if you say so...
Code: | [global]
strict allocate = yes
time server = Yes
hide unreadable = Yes
admin users = @"Domain Admins"
workgroup = CAG
netbios name = othello
server string = Samba3
printcap name = /dev/null
load printers = no
disable spoolss = yes
log file = /var/log/samba/log.%m
max log size = 20000
log level = 5
hosts allow = 192.168.1. 127. 192.168.124.
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.1.1/24
local master = yes
os level = 65
domain master = yes
preferred master = yes
domain logons = yes
add user script = /usr/sbin/smbldap-useradd -m "%u"
ldap delete dn = Yes
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
passdb backend = ldapsam:ldap://127.0.0.1/
ldap passwd sync = Yes
ldap suffix = dc=CAG,dc=CZ
ldap admin dn = cn=Manager,dc=CAG,dc=CZ
ldap ssl = no
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
wins support = yes
dns proxy = no
Dos charset = 852
Unix charset = UTF-8
|
and then several shares |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Mar 25, 2009 11:10 pm Post subject: |
|
|
How many machines do you have on your network that will be using samba? All Windoze machines or a mix?
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
MorpheuS.Ibis Tux's lil' helper
Joined: 22 Apr 2006 Posts: 143
|
Posted: Thu Mar 26, 2009 6:26 am Post subject: |
|
|
all machines are windows, about 25 XP, one vista (tried to remove it and it didn't help) |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Mar 26, 2009 7:52 am Post subject: |
|
|
As I look at your /etc/samba/smb.conf, I can't help but think that perhaps you're just a bit overloaded as far as that file is concerned.
My philosophy is that simpler is always better. I have numerous samba shares on my network (albeit not 25), and the file sharing can get pretty intense. However, none of the machines ever appears to overload itself, no matter the size of the files being moved around.
With that idea in mind, I offer the /etc/samba/smb.conf file that I have used from the time I was working with Slackware-12. It has run on Slackware, Debian, Arch, Vector, and now Gentoo. It's not as complex as yours. That might be a help to your situation.
Code: | [global]
interfaces = eth0
security = SHARE
root directory = /
log file = /var/log/samba.%m
max log size = 50
min protocol = NT1
max protocol = NT1
server signing = auto
printcap name = cups
preferred master = No
local master = No
domain master = No
dns proxy = No
ldap ssl = no
hosts allow = 192.168.0.100, 192.168.0.115, 192.168.0.120, 192.168.0.127, 192.168.0.130, 127.0.0.1
hosts deny = ALL
printing = cups
print command =
lpq command = %p
lprm command =
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
[homes]
comment = Home Directories
path = /
read only = No
|
While it's true my shares technically run full throttle, allowing only the exact IP addresses I've assigned to access them works really well if security is a concern.
It may or may not help, but it surely won't hurt.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
|