TDB hash size

Justin Payne jpayne at
Fri Sep 3 14:04:27 MDT 2010

I was instructed by Simo that samba-technical@ may be a better place for 
this discussion.

Sorry for the widespread distribution, but I cannot find much with 
regard to documentation on this question. Can anyone think of any issues 
that would arise from increasing the samba (3.0.33) printing tdb hash 
size using the following method:

rm -f /var/cache/samba/printing/*
rm -f /var/spool/samba/*

cd /var/cache/samba
tdbbackup -s .bck -n 100000 nt*.tdb
mv ntprinters.tdb.bck ntprinters.tdb
mv ntforms.tdb.bck ntforms.tdb
mv ntdrivers.tdb.bck ntdrivers.tdb

More specifically, does anyone know of a method for calculating the 
proper hash size required for a specific environment? The issue arose by 
print queues not being cleared. After the hash sizes of the above tdb's 
were increased, the problem went away.



More information about the samba-technical mailing list