[Samba] smbd hanging at BDC
mallapadi niranjan
niranjan.ashok at gmail.com
Mon May 29 11:58:33 GMT 2006
Hi all
I have a samba pdc(master LDAP Server) with 1 BDC(slave ldap server), the
version of Samba at PDC and BDC is samba 3.0.21c. At BDC , there are some
shares declared. The shares are used to store Fox pro files. The client uses
foxpro and opens DBF file in the share declared.
and also Roaming profiles is also used at BDC. The problem is samba hangs
frequently. Once rebooted works for some time and as then samba hangs unable
to open any fox pro files.
Almost more than 100 process are getting created.
Server Hardware Configuration (BDC)
Intel Pentium 2.4 Ghz Processor
512 MB RAM
36GB SCSI Hard disk
Intel S845WD1E Server Motherboard
Adaptec SCSI PCI
Intel on board 100Mbps NIC
is it because the samba is unable to handle foxpro, ?
I have done the backtrace of a particular smbd process
##################################################################
#0 0x00d047a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x006d2d30 in __nanosleep_nocancel () from /lib/tls/libc.so.6
#2 0x00372a7f in yield_cpu () at tdb/spinlock.c:265
#3 0x00372c62 in __write_lock (rwlock=0xb7cd7070) at tdb/spinlock.c:338
#4 0x00372dcd in tdb_spinlock (tdb=0x91ebc70, list=1003, rw_type=1)
at tdb/spinlock.c:388
#5 0x0036e7b0 in tdb_lock (tdb=0x91ebc70, list=1003, ltype=1) at
tdb/tdb.c:302
#6 0x003725c3 in tdb_chainlock (tdb=0x91ebc70, key=
{dptr = 0x49e6a0 "\022\b", dsize = 16}) at tdb/tdb.c:2030
#7 0x002fb867 in get_share_mode_lock (mem_ctx=0x0, dev=2066, ino=7884964,
servicepath=0x91e8aa0 "/data/Server",
fname=0x9204bb0 "FINALQC/HEMANTH QC/Sub Assy Codes")
at locking/locking.c:619
#8 0x001d98a8 in open_directory (conn=0x91f5a20,
fname=0x9204bb0 "FINALQC/HEMANTH QC/Sub Assy Codes", psbuf=0xbfebcf90,
access_mask=131072, share_access=3, create_disposition=1,
create_options=0, pinfo=0x0) at smbd/open.c:1930
#9 0x00181f6b in user_can_read_file (conn=0x91f5a20,
name=0x9204bb0 "FINALQC/HEMANTH QC/Sub Assy Codes", pst=0xbfebcf90)
at smbd/dir.c:852
#10 0x0018236d in is_visible_file (conn=0x91f5a20,
dir_path=0x91f2e20 "FINALQC/HEMANTH QC", name=0x92004e8 "Sub Assy
Codes",
pst=0xbfebcf90, use_veto=1) at smbd/dir.c:994
Second Trial
#0 0x00d047a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x006d2d30 in __nanosleep_nocancel () from /lib/tls/libc.so.6
#2 0x00372a7f in yield_cpu () at tdb/spinlock.c:265
#3 0x00372c62 in __write_lock (rwlock=0xb7d2d070) at tdb/spinlock.c:338
#4 0x00372dcd in tdb_spinlock (tdb=0x91ebc70, list=1003, rw_type=1) at
tdb/spinlock.c:388
#5 0x0036e7b0 in tdb_lock (tdb=0x91ebc70, list=1003, ltype=1) at
tdb/tdb.c:302
#6 0x003725c3 in tdb_chainlock (tdb=0x91ebc70, key={dptr = 0x49e6a0
"\022\b", dsize = 16}) at tdb/tdb.c:2030
#7 0x002fb867 in get_share_mode_lock (mem_ctx=0x0, dev=2066, ino=7884964,
servicepath=0x918b2d8 "/data/Server",
fname=0x9200780 "FINALQC/HEMANTH QC/Sub Assy Codes") at
locking/locking.c:619
#8 0x001d98a8 in open_directory (conn=0x91f7268, fname=0x9200780
"FINALQC/HEMANTH QC/Sub Assy Codes", psbuf=0xbfebcf90,
access_mask=131072, share_access=3, create_disposition=1,
create_options=0, pinfo=0x0) at smbd/open.c:1930
#9 0x00181f6b in user_can_read_file (conn=0x91f7268, name=0x9200780
"FINALQC/HEMANTH QC/Sub Assy Codes", pst=0xbfebcf90)
at smbd/dir.c:852
#10 0x0018236d in is_visible_file (conn=0x91f7268, dir_path=0x91dd4f0
"FINALQC/HEMANTH QC", name=0x9202e78 "Sub Assy Codes",
pst=0xbfebcf90, use_veto=1) at smbd/dir.c:994
#11 0x0018124f in dptr_normal_ReadDirName (dptr=0x91f2238,
poffset=0xbfebc338, pst=0xbfebcf90) at smbd/dir.c:547
#12 0x001812a7 in dptr_ReadDirName (dptr=0x91f2238, poffset=0xbfebc338,
pst=0xbfebcf90) at smbd/dir.c:565
#13 0x001c0be2 in get_lanman2_dir_entry (conn=0x91f7268, inbuf=0xb7d61008,
outbuf=0xb7d40008, path_mask=0xbfebd120 "*",
dirtype=22, info_level=260, requires_resume_key=4, dont_descend=0,
ppdata=0xbfebd11c, base_data=0x91fa430 "`",
space_remaining=14456, out_of_space=0xbfebd100,
got_exact_match=0xbfebd07c, last_entry_off=0xbfebd118, name_list=0x0,
ea_ctx=0x0) at smbd/trans2.c:1067
#14 0x001c3b9d in call_trans2findfirst (conn=0x91f7268, inbuf=0xb7d61008 "",
outbuf=0xb7d40008 "", bufsize=131072,
pparams=0xbfebda10, total_params=56, ppdata=0xbfebda0c, total_data=0,
max_data_bytes=16384) at smbd/trans2.c:1767
#15 0x001d014d in reply_trans2 (conn=0x91f7268, inbuf=0xb7d61008 "",
outbuf=0xb7d40008 "", length=128, bufsize=131072)
at smbd/trans2.c:5001
#16 0x001f33fe in switch_message (type=50, inbuf=0xb7d61008 "",
outbuf=0xb7d40008 "", size=128, bufsize=131072)
at smbd/process.c:1071
#17 0x001f34c9 in construct_reply (inbuf=0xb7d61008 "", outbuf=0xb7d40008
"", size=128, bufsize=131072)
at smbd/process.c:1101
#18 0x001f38da in process_smb (inbuf=0xb7d61008 "", outbuf=0xb7d40008 "") at
smbd/process.c:1201
#19 0x001f4a52 in smbd_process () at smbd/process.c:1753
#20 0x00403df9 in main (argc=2, argv=0xbfebdd34) at smbd/server.c:976
##################################################################
The following is the smb.conf of my BDC .
#############################################################
unix charset = LOCALE
workgroup = msdpl.com
netbios name = fosrv001
passdb backend = ldapsam:ldap://192.168.130.3
enable privileges = yes
server string = Factory Backup Domain Controller
log level = 2
remote announce = 192.168.129.20
remote browse sync = 192.168.129.20
hosts allow = 192.168.129. 192.168.128. 192.168.130. 127.
syslog = 0
log file = /usr/local/samba-fo/var/%U.%m.log
max log size = 1000
smb ports = 139
printcap name = cups
show add printer wizard = no
logon script = %u.bat
logon path =
logon drive = X:
logon home = domain logons = yes
wins support = No
domain master = No
preferred master = yes
hide unreadable = yes
deadtime = 15
wins support = no
wins server = 192.168.129.20
ldap passwd sync = yes
add user script = /usr/local/sbin/smbldap-useradd -m "%u"
delete user script = /usr/local/sbin/smbldap-userdel "%u"
add machine script = /usr/local/sbin/smbldap-useradd -w "%m"
add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u"
"%g"
set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
ldap delete dn = Yes
name resolve order = lmhosts wins bcast hosts
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192
SO_SNDBUF=8192
#interfaces = eth0, lo
#bind interfaces only = yes
hide dot files = yes
dns proxy = no
nt acl support = yes
ldap passwd sync = yes
ldap suffix = dc=msdpl,dc=com
ldap admin dn = cn=foreplica,dc=msdpl,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=People
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Idmap
ldap ssl = no
ldap timeout = 70
idmap backend = ldap:ldap://192.168.130.3
idmap uid = 10000-20000
idmap gid = 10000-20000
map acl inherit = yes
printing = cups
################################[Share Definations]###################
[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = no
nt acl support = Yes
# Un-comment the following and create the netlogon directory for Domain
Logons
[netlogon]
comment = Network Logon Service
path = /netlogon/scripts
guest ok = yes
browseable = no
write list = root
[profiles]
comment = Profiles
path = /profiles/%U
browseable = yes
writeable = yes
veto files = desktop.ini
veto oplock files =
/*.DBF/*.TMP/*.CDX/*.SCX/*.SPR/*.SPX/*.SCT/*.FRT/*FXP/*.FRX
[data]
comment = Data Share
path = /data/Server
browseable = yes
writeable = yes
veto files = /lost+found/.Trash-root/*.sh/*.scr/.recycle/
inherit permissions = yes
inherit acls = yes
vfs objects = recycle
dos filemode = yes
store dos attributes = yes
veto oplock files =
/*.DBF/*.FPT/*.TMP/*.CDX/*.SCX/*.SPR/*.SPX/*.SCT/*.FRT/*FXP
#############################################################
Please Guide me
Regards
Niranjan
More information about the samba
mailing list