[Samba] How do I trim messages.tdb??

Rob Tanner rtanner at linfield.edu
Wed Nov 22 21:37:59 GMT 2006

On 11/22/2006 07:56 AM, Jeremy Allison wrote:
> On Tue, Nov 21, 2006 at 10:17:13PM -0800, Rob Tanner wrote:
>> Hi,
>> I've got a messages.tdb file that's currently 2.5GB in size.  Is there a
>> way to trim it down (and preferably keep it  trimmed)?  Can I simply
>> delete it or zero its length by copying  /dev/null to it?
>> I'm need of an answer before I end up with a full file system.
> You can stop smbd/nmbd then just delete it. It will 
> be recreated on startup. Strange that it got so large.
> What Samba version ?
> Jeremy.

I'm running version 3.0.14a-2.  When I looked at the message.tdb file
strings, what I primarily saw were printer messages.  One thing this
particular system does is act as a print server for some 20+ printers
that are heavily used by students. 

-- Rob


Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

More information about the samba mailing list