Yves Glodt
2007-Mar-06 09:31 UTC
[Samba] "rec_read bad magic" error when printing... again
Hello, some of my servers regularly come up with this error, which makes printing over samba impossible: Mar 6 09:06:44 server smbd[4431]: [2007/03/06 09:06:44, 0] tdb/tdbutil.c:tdb_log(772) Mar 6 09:06:44 server smbd[4431]: tdb(/var/cache/samba/printing/printer.tdb): rec_read bad magic 0xd9fee666 at offset=22796 Searching mailing lists, I just found the "solution" to stop samba, delete the tdb file, and restart it. I am in charge of 25 servers of this kind and would be happy for a more "professional" solution to this... :-) Is there any... ? Otherwise I guess I will set up a cronjob to remove the file on a nightly base... :-| Please tell me there is a better way :-) best regards, Yves
Volker Lendecke
2007-Mar-06 09:57 UTC
[Samba] "rec_read bad magic" error when printing... again
On Tue, Mar 06, 2007 at 10:02:35AM +0100, Yves Glodt wrote:> some of my servers regularly come up with this error, which makes printing > over samba impossible: > > Mar 6 09:06:44 server smbd[4431]: [2007/03/06 09:06:44, 0] > tdb/tdbutil.c:tdb_log(772) > Mar 6 09:06:44 server smbd[4431]: > tdb(/var/cache/samba/printing/printer.tdb): rec_read bad magic 0xd9fee666 at > offset=22796If this really happens often to you, then you have some basic problems with your setup. Either your hardware is flaky or your smbd processes tend to crash. If you happen to use reiserfs for /var/cache/samba you might try to change that fs to ext3. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070306/dd03e0d8/attachment.bin
Yves Glodt
2007-Mar-06 12:55 UTC
[Samba] "rec_read bad magic" error when printing... again
On Tuesday 06 March 2007 11:01, Volker Lendecke wrote:> On Tue, Mar 06, 2007 at 10:02:35AM +0100, Yves Glodt wrote: > > some of my servers regularly come up with this error, which makes > > printing over samba impossible: > > > > Mar 6 09:06:44 server smbd[4431]: [2007/03/06 09:06:44, 0] > > tdb/tdbutil.c:tdb_log(772) > > Mar 6 09:06:44 server smbd[4431]: > > tdb(/var/cache/samba/printing/printer.tdb): rec_read bad magic 0xd9fee666 > > at offset=22796 > > If this really happens often to you, then you have some > basic problems with your setup.The setup is a stock Ubuntu 6.06, using only ubuntu packages. I have 25 servers and it happens about once a week in total. (This might not sound like a lot, but it creates a support ticket on each occurrence..)> Either your hardware is > flakyI can not know 100% of course, but apart of the printing problem, the boxes run very well.> or your smbd processes tend to crash.I never had an smbd crashing so far (AFAIK). Samba version is 3.0.22.> If you happen to > use reiserfs for /var/cache/samba you might try to change > that fs to ext3.All my partitions are ext3, /var being on a separate one as well. is it worth that I increase the loglevel, or is there anything else I can watch for? I read somewhere that samba V3 would be able to recreate the tdb while running, but could not find a parameter for that. Is it possible at all? yves> Volker
Seemingly Similar Threads
- Countless "rec_read bad magic" lines in log.smbd
- Windows print queue not clearing: Part II
- REPOST: Samba 2.2.5 under Debian 3.0 i386: Still frequent connections.tdb corruption
- Suddenly can't print: "rec_read bad magic..."
- Still Can't print from client computers - help!!