[Samba] Smbd hanging

mallapadi niranjan niranjan.ashok at gmail.com
Fri Mar 24 04:14:08 GMT 2006


Hi

I too have the same problem of smbd processes getting spawned. i gets
sometimes to 200 above process and all the users are unable access my samba
server.

below is my descript of the problem
#####

Hi all

I have a samba 3.0.21c with openldap 2.3.19,  with another linux system
having samba 3.0.21c acting as domain member server. (file server)
all my client access the file server shares extensively. about 100 users
access the file server at time,
this is making things very slow, on the file server about 180 smbd process
are getting created. on the file server i have 1gb of RAM with
2Gb of swap space, it occupies all the 1gb but never access swap space. The
share that they access is of 40gb of data
The access to the file server becomes so slow that all my client systems get
hanged (clients system windows 2k professional)
The server architecture of my file server IBM 226 series xeon server with
1gb ram and 73Gb hard disk.

on the file server when we do
smbclient //filesrv/share -U root%redhat
it says server did not respond after 20000 milliseconds.
what could be the problem is it that i need to upgrage the RAM, or
plese suggest  or
can we do any changes share defination of smb.conf of my file server so that
access becomes quick.
the following is my smb.conf of domain member server ( file server)
###############################################################################################
[global]

 unix charset = LOCALE
 workgroup = msdpl.com
 netbios name = prjsrv01
 server string = Project Server 1
 printcap name = /etc/printcap
 load printers = yes
 cups options = raw
 log level = 2
 log file = /usr/local/samba-3c/var/%U.%m.log
 syslog = 0
 max log size = 100
 smb ports = 139
 security = domain
 username map = /usr/local/samba-3c/lib/smbusers
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 name resolve order = wins bcasts hosts
 wins server = 192.168.129.20
 dns proxy = no
 ldap server = 192.168.129.20
 ldap suffix = dc=msdpl,dc=com
 ldap machine suffix = ou=Computers
 ldap user suffix = ou=People
 ldap group suffix = ou=Groups
 ldap idmap suffix = ou=Idmap
 ldap admin dn = cn=manager,dc=msdpl,dc=com
 ldap ssl = no
 ldap timeout = 50
 acl check permissions = Yes
 template shell = /bin/false
 winbind use default domain = no
 inherit permissions = yes
 inherit acls = yes
 nt acl support = yes
 hide dot files = yes
#######################################Share
Definations########################################
 [homes]
   comment = Home Directories
   valid users = %S
   browseable = no
   writable = yes
   veto files =
/.bash_history/.bash_logout/.bash_profile/.bashrc/.canna/.emacs/.gtkrc/.kde/.viminfo/.xemacs/.zshrc/
   hide dot files = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes

 [projects]
 comment = All Projects
 path = /projects
 browseable = no
 guest ok = no
 writeable = yes
 printable = no
 veto files = desktop.ini/lost+found/.Trash-root/*.sh/*.scr/.recycle/
 create mode = 2700
 force create mode = 0700
 force directory mode = 0700
 inherit permissions = yes
 inherit acls = yes
 vfs objects = recycle

 [datalib]
 comment = DataLib
 path = /datalib
 browseable = no
 writeable = yes
 vfs objects = recycle
 veto files = lost+found
 inherit permissions = yes
 inherit acls = yes
 veto files = desktop.ini/lost+found/.Trash-root/*.sh/*.scr/.recycle/

[softdumps$]
    Comment = Soft Dumps
    Path = /dumps/softdumps
    browseable = no
    writeable = yes
    inherit permissions = yes
    inherit acls = yes
        veto files = lost+found/.Trash-root/*.sh/*.scr/.recycle/
    write list = @nns, root, @codesec
    vfs objects = recycle
[dumps]
    Comment = Dumps
    Path = /dumps/dumps
    browseable = yes
    inherit permissions = yes
    inherit acls = yes
    vfs objects = recycle
        veto files = desktop.ini/lost+found/.Trash-root/*.sh/*.scr/.recycle/

[hdrive$]
   path = /home
   browseable = no
   public = no
   writable = yes
   create mask = 0765
   veto files = desktop.ini
   valid users = kr1233, root
   force create mode = 0770
   force directory mode = 0770
   inherit permissions = yes
   inherit acls = yes
   hide dot files = yes
###############################################################################################

Regards
 Niranjan


On 3/24/06, Matt Lung <matt.lung at midwest-tool.com> wrote:
>
> Problem
> ------------
> SMBD processes spawn out of control until the Samba stops responding.
> Restarting the service does not clear the processes.  Only a reboot of
> the server will bring it back to a usable state.
>
> This server is home to our postgres databases, Access front ends, and
> Production Files (excel, word...).  It is a samba domain member server.
> We have multiple Samba file servers here but this server is the only one
> that exhibits this behavior.  All servers are running the same samba
> version and OS version.  It has been happening for months now and is not
> occurring at regular intervals.  Please see the info below.  I'd like to
> stop this from occurring so any and all help would be welcome with open
> arms.
>
> Site Info
> ------------
> Samba Version:  samba-3.0.20b-1
> OS:  Fedora Core 3
> Kernel:  kernel-2.6.12-1.1381_FC3
>
> Log Info
> ---------
> There were not errors from the day the server crashed, but there was one
> 3 days prior.  See snip...
>
> [2006/03/20 15:14:05, 0] lib/util.c:smb_panic2(1548)
>   PANIC: internal error
> [2006/03/20 15:14:05, 0] lib/util.c:smb_panic2(1556)
>   BACKTRACE: 22 stack frames:
>    #0 smbd(smb_panic2+0x8a) [0xb7e4fe03]
>    #1 smbd(smb_panic+0x19) [0xb7e50037]
>    #2 smbd [0xb7e3bef1]
>    #3 [0xb7c76420]
>    #4 smbd(cli_start_connection+0x37e) [0xb7d32427]
>    #5 smbd(cli_full_connection+0x6a) [0xb7d32573]
>    #6 smbd(enumerate_domain_trusts+0x145) [0xb7e9a45a]
>    #7 smbd(update_trustdom_cache+0xdd) [0xb7e99f3b]
>    #8 smbd(is_trusted_domain+0x65) [0xb7e94519]
>    #9 smbd(make_user_info_map+0x163) [0xb7e94761]
>    #10 smbd [0xb7e95367]
>    #11 smbd [0xb7d5870f]
>    #12 smbd(ntlmssp_update+0x143) [0xb7d57c41]
>    #13 smbd(auth_ntlmssp_update+0x44) [0xb7e95726]
>    #14 smbd [0xb7cefaba]
>    #15 smbd(reply_sesssetup_and_X+0x4f1) [0xb7cf1069]
>    #16 smbd [0xb7d1cfa3]
>    #17 smbd(process_smb+0x19b) [0xb7d1d3c8]
>    #18 smbd(smbd_process+0x13a) [0xb7d1e26d]
>    #19 smbd(main+0x91e) [0xb7ed8455]
>    #20 /lib/tls/libc.so.6(__libc_start_main+0xd3) [0xb78b1e23]
>    #21 smbd [0xb7cb4e41]
>
> Smb.conf
> ---------------
> # Global parameters
> [global]
>         workgroup = XXX
>         server string = Samba Server
>         security = DOMAIN
>         log file = /var/log/samba/log
>         max log size = 100000
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>         dns proxy = No
>         ldap ssl = no
>         log level = 3
>         load printers = No
>         kernel oplocks = Yes
>         deadtime = 15
>         printing = lprng
>         printcap cache time = 0
>         machine password timeout = 0
>
> [homes]
>         comment = Home Directories
>         read only = No
>         browseable = No
>         available = No
>
> #[printers]
> #       comment = All Printers
> #       path = /var/spool/samba
> #       printable = Yes
> #       browseable = No
>
> [public_app]
>         comment = Public Data Repository
>         path = /var/local/group_shares/public_data
>         read only = No
>         create mask = 02775
>         force create mode = 02775
>         directory mask = 02775
>         force directory mode = 02775
>
> [prod_control]
>         comment = Production Control Repository
>         path = /var/local/group_shares/prod_control
>         read only = No
>         create mask = 02775
>         force create mode = 02775
>         directory mask = 02775
>         force directory mode = 02775
>
> --
> Matt Lung
>
> Midwest Tool & Die, Corp.
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list