SUSE Support

Here When You Need Us

Winbind In High Utilization And Stops Responding

This document (7003593) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10 Service Pack 2

Situation

After a crash winbind would only stay up for five to ten minutes before going into high utilization and eventually stop responding to all requests.
 
/var/log/samba/winbindd.log reported a line as follows (emphasis added):
tdb(/var/lib/samba/gencache.tdb): tdb_rec_read bad magic 0x42424242 at offset=181324

Resolution

/var/lib/samba/*cache*.tdb files had some corruption.  We tested the tdb files with the following command:
# cd /var/lib/samba
# for i in $( ls -1 | grep cache | grep tdb | grep -v bak ); do tdbdump $i | wc -l; done
 
We would expect the wc -l on each file to be greater than 0 (zero).  The winbindd.log also pointed to the corrupt file (note the gencache.tdb in the same line with "bad magic" as listed above)
 
Generally, the above symptoms will mean that there is corruption in one of the /var/lib/samba/*cache*.tdb files.  Development recommends NOT deleting this information without first speaking with a Samba Developer.  For this reason, this TID is to remain INTERNAL ONLY.
 
1.  Stop winbind, nmb, and smb. 
2.  After copying the *cache*.tdb files into a backup directory of your choice, delete the *cache*.tdb files from /var/lib/samba (NOTE:  Do not touch the .bak files). 
3.  Start winbind, smb, and nmb (starting winbind first is considered good practice).  The files in step number two should be recreated upon service restart

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7003593
  • Creation Date: 19-Jun-2009
  • Modified Date:10-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.