Hello, which .tdb files in /var/lib/samba are safe to remove (rebuilt automatically)? Long story: I have posted a couple of times lately regarding some mysterious freeze effects we've been having on the clients. We have now tried 2.2.4, 2.2.7a (this one makes it even worse) and 2.999 (3.0 pre-X) and have the same trouble on all. It seems the same configuration does NOT cause this problem on another host (not 100% verified yet though). Our current theory, because it started happening after an uncontrolled shutdown due to an extended power outage, is that some file used by samba is corrupt or inconsistent. The .tdb files are currently the prime suspect. But I don't just want to remove them and conclude that it "seems to work", beacuse then I might run into problems in the future, in case they *aren't* safe to remove but don't cause any immediate problems. Thanks! -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrival: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: signature Url : http://lists.samba.org/archive/samba/attachments/20030209/1f4018f5/attachment.bin
On Sun, 2003-02-09 at 12:10, Peter Sch?ller wrote:> Hello, > > which .tdb files in /var/lib/samba are safe to remove (rebuilt automatically)?I've removed all the tdb files before ... they do get recreated automatically. However you will have to reconfigure your system to get things working as you want. For example: If you remove the secrets.tdb files you'll have to reset the SID (or live with a new one). If you remove the ntdrivers.tdb file you'll have to re-upload printer drivers. If you want to just try clearing things out i recommend getting rid of all of them and reseting those parameters that are important to values of your choosing. Probably it would be wise to make a backup in case of trouble. brad -- Bradley W. Langhorst <brad@langhorst.com>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 9 Feb 2003, Peter Sch?ller wrote:> Hello, > > which .tdb files in /var/lib/samba are safe to remove (rebuilt > automatically)?This is for Samba 2.2: * nt*.tdb. * winbindd_idmap.tdb * share_info.tdb I thinks that's it. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+R+XyIR7qMdg1EfYRAv1XAJ9s5dYXthpmvjXwCuDDoQ2+tFwkngCfTzkX 6kt6CrApe4TH3/3x9t2+yOc=xRJ1 -----END PGP SIGNATURE-----
> -----Original Message----- > From: Gerald (Jerry) Carter [mailto:jerry@samba.org] > Sent: Monday, February 10, 2003 7:49 PM > To: Peter Sch?ller > Cc: samba@lists.samba.org > Subject: Re: [Samba] Which .tdb files are safe to remove? > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, 9 Feb 2003, Peter Sch?ller wrote: > > > Hello, > > > > which .tdb files in /var/lib/samba are safe to remove (rebuilt > > automatically)? > > This is for Samba 2.2: > > > * nt*.tdb. > * winbindd_idmap.tdb^^^^^^^^^^^^^^^^^^^^^^^^^^^^> * share_info.tdb > > I thinks that's it.I wouldn't remove the idmap if any users had files on the server. Their UIDs may get mixed up. Last I looked the idmap _was_ rebuilt, but on-the-fly on a first-come-first-served basis. In several times I removed it all the permissions were "mixed-up" after winbind ran again. N. -- Nir Soffer -=- Software Engineer, Exanet Inc. -=- "The poor little kittens; They lost their mittens; And now you all must die. Mew, Mew, Mew, Mew, And now you all must die." www.sluggy.com, 24/10/02