Samba Debugging

I have an ext3 share on an old debian machine - 266MHz/128MBRAM that was not working...

* In CentOS check /var/log/messages for SELinux messages, if needed can disable SELinux with

# echo 0 > /selinux/enforce

also for troubleshooting the install..

# testparm /etc/samba/smb.conf

* Been running Debian Lenny/Squeeze - whoops..
* SMB was on wrong versions - foudn this link useful: Samba.org Thread

* In CentOS check /var/log/messages for SELinux messages, if needed can disable SELinux with

# echo 0 > /selinux/enforce

For troubleshooting Linxu in general for Samba -

# testparm /etc/samba/smb.conf

After looking at core dump from running

# smbd -D -F -i

Analyze with gdb (good article at Blogger

# gdb /usr/sbin/smbd /var/log/samba/cores/smbd/core
(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
Reading symbols from /lib/i686/cmov/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i686/cmov/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1(no debugging symbols found)
Core was generated by `smbd -D -F -i'.
Program terminated with signal 6, Aborted.
[New process 23710]
#0  0xb7f83430 in __kernel_vsyscall ()
(gdb) 

.. and googling the errors, found my versions were wrong.

Spose this is what happens when running SID/Squeeze then changing apt repo to not include them any more...

I had mixed versions of libwbclient, libwbclient0, samba, samba-common..

# apt-get remove libwbclient0    ( also removed samba samba-common libsmbclient )
# apt-get install samba samba-common libsmbclient libwbclient0
# /etc/init.d/samba restart   ( just to be sure )

And things are looking ok now..

root@debian:/# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0   4124   3104   7448  76884    0    0    81    14  153   72 11  3 84  1
root@debian:/# top -b | head -6
top - 00:10:05 up 1 day,  4:43,  5 users,  load average: 0.52, 0.20, 0.13
Tasks:  75 total,   1 running,  74 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.2%us,  3.2%sy,  6.8%ni, 84.2%id,  1.4%wa,  0.1%hi,  0.0%si,  0.0%st
Mem:    125856k total,   123256k used,     2600k free,     7456k buffers
Swap:   257000k total,     4124k used,   252876k free,    76884k cached
                                
root@debian:/# pgrep smb
24043
24045
24067
root@debian:/#