Hi @all, backing up and verifying _printing_ databases uses 20-96% cpu and takes a long time (there are only few entries and smbd and nmbd were not running): for i in /var/lock/samba/?*.tdb /var/lock/samba/printing/?*.tdb /etc/?*.tdb do date echo $i.samba.bak rm -f $i.samba.bak tdbbackup -s .samba.bak $i tdbbackup -v $i # 1> /dev/null done Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/account_policy.tdb.samba.bak /var/lock/samba/account_policy.tdb : 10 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/brlock.tdb.samba.bak /var/lock/samba/brlock.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/connections.tdb.samba.bak /var/lock/samba/connections.tdb : 1 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/gencache.tdb.samba.bak /var/lock/samba/gencache.tdb : 7 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/group_mapping.tdb.samba.bak /var/lock/samba/group_mapping.tdb : 13 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/locking.tdb.samba.bak /var/lock/samba/locking.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/messages.tdb.samba.bak /var/lock/samba/messages.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/ntdrivers.tdb.samba.bak /var/lock/samba/ntdrivers.tdb : 1 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/ntforms.tdb.samba.bak /var/lock/samba/ntforms.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/ntprinters.tdb.samba.bak /var/lock/samba/ntprinters.tdb : 21 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/registry.tdb.samba.bak /var/lock/samba/registry.tdb : 10 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/sessionid.tdb.samba.bak /var/lock/samba/sessionid.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/share_info.tdb.samba.bak /var/lock/samba/share_info.tdb : 1 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/unexpected.tdb.samba.bak /var/lock/samba/unexpected.tdb : 0 records Thu Nov 4 21:46:12 CET 2004 /var/lock/samba/printing/eisfax.tdb.samba.bak /var/lock/samba/printing/eisfax.tdb : 5 records Thu Nov 4 21:46:16 CET 2004 /var/lock/samba/printing/pdf.tdb.samba.bak /var/lock/samba/printing/pdf.tdb : 7 records Thu Nov 4 21:46:21 CET 2004 /var/lock/samba/printing/pr2.tdb.samba.bak /var/lock/samba/printing/pr2.tdb : 7 records Thu Nov 4 21:46:25 CET 2004 /var/lock/samba/printing/pr3.tdb.samba.bak /var/lock/samba/printing/pr3.tdb : 1 records Thu Nov 4 21:46:29 CET 2004 /var/lock/samba/printing/repr1.tdb.samba.bak /var/lock/samba/printing/repr1.tdb : 1 records Thu Nov 4 21:46:33 CET 2004 /var/lock/samba/printing/repr10.tdb.samba.bak /var/lock/samba/printing/repr10.tdb : 1 records Thu Nov 4 21:46:38 CET 2004 /var/lock/samba/printing/repr11.tdb.samba.bak /var/lock/samba/printing/repr11.tdb : 1 records Thu Nov 4 21:46:42 CET 2004 /var/lock/samba/printing/repr2.tdb.samba.bak /var/lock/samba/printing/repr2.tdb : 1 records Thu Nov 4 21:46:46 CET 2004 /var/lock/samba/printing/repr3.tdb.samba.bak /var/lock/samba/printing/repr3.tdb : 1 records Thu Nov 4 21:46:50 CET 2004 /var/lock/samba/printing/repr4.tdb.samba.bak /var/lock/samba/printing/repr4.tdb : 1 records Thu Nov 4 21:46:55 CET 2004 /var/lock/samba/printing/repr5.tdb.samba.bak /var/lock/samba/printing/repr5.tdb : 1 records Thu Nov 4 21:46:59 CET 2004 /var/lock/samba/printing/repr6.tdb.samba.bak /var/lock/samba/printing/repr6.tdb : 1 records Thu Nov 4 21:47:03 CET 2004 /var/lock/samba/printing/repr7.tdb.samba.bak /var/lock/samba/printing/repr7.tdb : 1 records Thu Nov 4 21:47:08 CET 2004 /var/lock/samba/printing/repr8.tdb.samba.bak /var/lock/samba/printing/repr8.tdb : 1 records Thu Nov 4 21:47:12 CET 2004 /var/lock/samba/printing/repr9.tdb.samba.bak /var/lock/samba/printing/repr9.tdb : 1 records Thu Nov 4 21:47:16 CET 2004 /etc/secrets.tdb.samba.bak /etc/secrets.tdb : 4 records Is this normal? One of the tdb's: test2 # tdbdump /var/lock/samba/printing/pr2.tdb { key = "INFO/linear_queue_array" data = "\00\00\00\00" } { key = "STATUS/pr2" data = "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" } { key = "CACHE/pr2\00" data = "3*\85A" } { key = "INFO/jobs_changed" data = "" } { key = "INFO/version\00" data = "\05\00\00\00" } { key = "INFO/total_jobs\00" data = "\00\00\00\00" } { key = "INFO/nextjob\00" data = "\02\00\00\00" } test2 # der tom __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201
Gerald (Jerry) Carter schrieb:> | backing up and verifying _printing_ databases uses 20-96% cpu and > | takes a long time (there are only few entries and smbd > | and nmbd were not running): > | > | Is this normal? > > Should be really fast. But you don't have to worry about the > printing/*tdb files. They're just cache files anyways.but if they are corrupt, printing is not possible, isn't it? That why my intention was to backup and check all tdb's in init.d. -- der tom