On Tue, 2005-11-15 at 02:12 -0800, Steve Langasek wrote:
> On Tue, Nov 15, 2005 at 08:42:50PM +1100, Andrew Bartlett wrote:
> > On Tue, 2005-11-15 at 06:54 +0100, Christian Perrier wrote:
> > > > Zeus:/var/log/samba# tail /var/log/samba/log.smbd
> > > > smbd version 3.0.14a-Debian started.
> > > > Copyright Andrew Tridgell and the Samba Team 1992-2004
> > > > [2005/11/14 19:46:20, 0] tdb/tdbutil.c:tdb_log(725)
> > > > tdb(/var/cache/samba/printing/HP895cxi.tdb): rec_free_read bad
> > > > magic 0xfee1dead at offset=27920
> 
> > > Have you tried deleting that specific file?
> 
> > > Such problem already happened to me on a heavy duty print server in
> > > unclear conditions and it turned out that deleting this apparently
> > > broken tdb file fixed the problem.
> 
> > > However, please save it before and send it to this bug
> > > report. Upstream might have some use for it to debug what caused the
> > > problem.
> 
> > Only if you can say the file has not been affected by abnormal program
> > termination (kill -9, power failure or the like), or if you have a segv
> > backtrace.
> 
> Are corrupted tdbs that result from abnormal program termination not
> considered bugs by the Samba team?  

tdb in Samba3 is not a journal-ed database.

> If so, I guess I need to reconsider the
> question of whether Debian should be providing automated backups of those
> .tdb files that are used for storing persistent program state
> (group_mapping.tdb, secrets.tdb,...).

Running tdbbackup at runtime (cronjob) on those would probably be a good
thing.   (Perhaps contradicting what I may have said before).

Files known to be run-time only files are deleted at startup, to avoid
this issue.  The printing dbs are a bit messier, as the print queue they
annotate is more persistent than reboots, but can still be deleted if
corrupt (existing jobs might have less info, but it's not the end of the
world).

> If it's just a matter of "yes, there's a bug, but having the file won't help
> us find it", I can understand that.

This is perhaps worth discussing on samba-technical@

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to