printer tdb file corruption

Kristaps Rāts krx at it-depo.lv
Mon Apr 24 10:11:22 GMT 2006


Hello,
we have a samba 3.0.14a host as a print server and today it went awol -
an smbd process is eating up 99% cpu time and printing doesn't work.
After restarting samba everything looks normal, but when someone tries
to print the same thing happens again. On startup the logs go something
like this:

[2006/04/23 15:18:55, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): remove_from_freelist:
not on list at off=107956
[2006/04/23 15:18:55, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): tdb_free: right free
failed at 107956
[2006/04/23 15:18:55, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): remove_from_freelist:
not on list at off=106764
[2006/04/23 15:18:55, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): tdb_free: left free
failed at 106764
[2006/04/23 15:18:55, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): rec_read bad magic
0xd9fee666 at offset=68072
[2006/04/23 15:40:56, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): rec_read bad magic
0xd9fee666 at offset=68072
[2006/04/23 15:41:49, 0] tdb/tdbutil.c:tdb_log(725)
  tdb(/var/cache/samba/printing/HPLJ1200PS.tdb): rec_read bad magic
0xd9fee666 at offset=68072

After removal of the offending tdb everything went back to normal -
samba created a new tdb (about 5 times smaller than the original) and
printing works again. Anyone care to look at that pesky tdb?



More information about the samba-technical mailing list