[Samba] 100% CPU eaten -- tdb_fetch failed

Andrew Bartlett abartlet at samba.org
Sun Feb 29 06:37:57 GMT 2004


On Fri, 2004-02-27 at 09:26, Fabio Muzzi wrote: 
> Hello John,
> 
> Thursday, February 26, 2004, 3:30:21 AM, you wrote:
> 
> 
> JHT> You should run the tdbbackup tool every time Samba (smbd) is shut down.
> JHT> Please refer to the man page for further information. The use of tdbbackup
> JHT> is a very important step to prevention of catastrophic problems with tdbs.
> 
> It  should  be  a  good idea to include a tdbbackup run in the init script
> that  runs  samba  (I mean /etc/init.d/samba). Why don't you include it in
> the  standard  init  script that is included in the samba distribution? (I
> refer  to  the  debian  packages,  I  don't  know  about  the other binary
> distributions).

Because JHT is a bit overboard here...

The problem is that not all tdbs need to be backed up - indeed, the tdbs
described as the problem here (connections/messages/sessionid in
particular) should in fact be deleted at startup.

The tdb that *must* be backed up is probably winbindd_idmap.tdb, given
the drastic consequences of loosing that file.  

tdbbackup is reasonably new tool, and I'm sure patches to the init
scripts will be gratefully accepted.  

Andrew Bartlett


-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20040229/fd20cc90/attachment.bin


More information about the samba mailing list