[Samba] TDB hash size

Justin Payne jpayne at redhat.com
Thu Sep 2 14:27:56 MDT 2010


  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.

Thanks,

Justin


More information about the samba mailing list