Hi, we are using samba 3.0.24 as a printspooler for 80 network printers with a 500kB ntprinters.tdb for some years now. When we recently restarted samba we noticed that the ntprinters.tdb automatically shrinked to 24kB and printing was no longer possible. tdbdump of the original tdb-file is impossible too: "Failed to open ntprinters.tdb" The strange thing about this: we can solve the problem temporarily if we copy the original 500kB tdb over the shrinked version while samba is already running! So samba seems to accept the tdb-files contents if it has been started with a clean tdb-file. Is there something like a tdb repair-tool? I would be lucky to find a way of getting all the settings out of this somehow corrupt tdb instead of rebuilding it from scratch... Any ideas? Thanks! Christoph
On Thu, Dec 06, 2007 at 11:17:09AM +0100, Christoph Peus wrote:> Hi, > > we are using samba 3.0.24 as a printspooler for 80 network printers with > a 500kB ntprinters.tdb for some years now. When we recently restarted > samba we noticed that the ntprinters.tdb automatically shrinked to 24kB > and printing was no longer possible. > tdbdump of the original tdb-file is impossible too: > "Failed to open ntprinters.tdb" > > The strange thing about this: we can solve the problem temporarily if we > copy the original 500kB tdb over the shrinked version while samba is > already running! So samba seems to accept the tdb-files contents if it > has been started with a clean tdb-file. > > Is there something like a tdb repair-tool? I would be lucky to find a > way of getting all the settings out of this somehow corrupt tdb instead > of rebuilding it from scratch... > Any ideas?tdbbackup? 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/20071206/8d5970a6/attachment.bin
Volker Lendecke wrote:> On Thu, Dec 06, 2007 at 11:17:09AM +0100, Christoph Peus wrote: >> Hi, >> >> we are using samba 3.0.24 as a printspooler for 80 network printers with >> a 500kB ntprinters.tdb for some years now. When we recently restarted >> samba we noticed that the ntprinters.tdb automatically shrinked to 24kB >> and printing was no longer possible. >> tdbdump of the original tdb-file is impossible too: >> "Failed to open ntprinters.tdb" >> >> The strange thing about this: we can solve the problem temporarily if we >> copy the original 500kB tdb over the shrinked version while samba is >> already running! So samba seems to accept the tdb-files contents if it >> has been started with a clean tdb-file. >> >> Is there something like a tdb repair-tool? I would be lucky to find a >> way of getting all the settings out of this somehow corrupt tdb instead >> of rebuilding it from scratch... >> Any ideas? > > tdbbackup?Thanks, but no luck: lunkwill tmp # tdbbackup -v ntprinters.tdb restoring ntprinters.tdb ntprinters.tdb.bak: No such file or directory lunkwill tmp # tdbbackup ntprinters.tdb Failed to open ntprinters.tdb Regards Christoph