Hi, I am having serious trouble with our fileserver. Every night, the backup runs, samba crashes. In the morning I see tons of smbd in ps xa, that I can't kill. I had the same problems wit stable samba for amd64, so I uppgraded to the latest samba release. Any suggestions? Many thanks in advance, Johnny # emerge -pv samba These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-fs/samba-3.0.21b +acl -async -automount +cups -doc +examples -kerberos -ldap -ldapsam -libclamav -mysql -oav +pam -postgres -python -quotas +readline (-selinux) +swat +syslog +winbind -xml -xml2 0 kB Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.3.4, glibc-2.3.5-r2, 2.6.13.5 x86_64) ================================================================= System uname: 2.6.13.5 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.6.14 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control /var/spool/fax/etc /var/www" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 aac aalib acl acpi alsa amd64 apache2 arts async audiofile automount avi berkdb bitmap-fonts bl buffysize bzip2 caps cdparanoia cdr chroot crypt cscope cups curl dga dts dv dvd dvdr dvdread ecc edl eds emboss encode erandom esd ethereal examples exif expat extensions f77 fam fax flac flexresp font-server foomaticdb fortran gd gdbm gif gimpprint glut gmp gnome gnutls gpgme gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idea idn imagemagick imap imlib inline iproute2 ipv6 java jpeg jpeg2k junit kde kerberos lcms ldap libcaca libclamav libwww lm_sensors logrotate lzw lzw-tiff mad maildir mailwrapper mbox memlimit mgetty mhash mikmod mng motif mp3 mpeg mysql ncurses nis nls nntp nptl oav obdc objc odbc ogg opengl pam pcre pdflib perl png pnp pop postgres povray ppds pppd prelude pwdb python qt quicktime quotas readline real rtc samba sasl scanner screen sdl sftplogging sguil skey slang slp smartcard smime smp snmp snortsam socks5 spell sqlite ssl svg swat syslog tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l v4l2 vcd vda vorbis winbind wmf xanim xine xinerama xml2 xmms xpm xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I don't have an amd64 system to test it, but I think it could be related to winbind (this used to be a core bug with external protocol libraries, as kerberos): try to either 1) upgrade to samba-3.0.21c 2) remove (temporarily) the winbind flag Use the quickpkg tool (portage package) to save your system binary package, so you don't have to recompile to revert the tests.
Hi, thank you for your reply. What does removing the winbind flag? What is winbind for? I usually had the stable amd64 3.0.14 samba. Johnny
"euse -i winbind": winbind (net-fs/samba): Enables support for the winbind auth daemon In short, the WINS protocol daemon for client network browsing: you have a server, usually a primary domain controller, that keeps the anagrafic registry of the active clients in the lan at every moment. Every system can be automatically the WINS server: maintainig it on the PDC gives the administrator more control on the net. Infact, only one daemon is authoritative: there is a (trasparent) election between the systems in the lan based on various things, such as protocols supported, os version, and so on...
well, I merged samba 3.0.21c # emerge -pv samba [ebuild R ] net-fs/samba-3.0.21c +acl -async -automount +cups -doc +examples -kerberos -ldap -ldapsam -libclamav -mysql -oav +pam -postgres -python -quotas +readline (-selinux) +swat +syslog -winbind -xml -xml2 0 kB But I am having the same behaviour. revdep-rebuild didn't find any broken libs. I think, that something is broken, that samba depends on. Johnny
I don't like the idea to do an "emerge --ask --buildpkg --deep --verbose samba" without inspection of the many internal details changed since 3.0.14 (hence the shift of versions to 3.0.20). This has to do with oplocks, either in the smbd daemon or the kernel: I think the backup procedure causes a timeout in the samba lock queue. So: 1) (if you can) upgrade and check the kernel configuration: the latest stable for you is gentoo-sources-2.6.15-r5 2) From "man smb.conf", I'd try to check the behaviours of these conf options: "blocking locks" "kernel oplocks": I won't touch this, I'm mentioning it just for background reference "level2 oplocks" "oplocks" "use sendfile" "write cache size": only if the zombies eat excessive memory
I have similar problems on two gentoo file-servers. Both are amd64. It seems to me that smbd processes stay alive even when client has already disconnected.
just updated from samba-3.0.21c-r1 to samba-3.0.22 #emerge -pv samba [ebuild R ] net-fs/samba-3.0.22 -acl -async -automount -cups -doc -examples -kerberos -ldap -ldapsam -libclamav -mysql -oav +pam -postgres -python -quotas +readline (-selinux) -swat -syslog -winbind -xml -xml2 0 kB
In samba-3.0.23a the wins internals have changed. Could you try it?
get back to us