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. Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR
On Tue, Nov 21, 2006 at 10:17:13PM -0800, Rob Tanner wrote:> 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?A 2.5GB messages.tdb is probably a bug in a different area. But you can safely delete it while Samba is not running. 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/20061122/c4505341/attachment.bin
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.