Hello Adam,

On 12/22/23 13:04, Adam Weremczuk wrote:
Hi all,

Bacula 9.6.7 on Debian 11.

Every 3 months I run "dbcheck -f -c /etc/bacula/bacula-dir.conf"

Last time 32,525 orphaned filename records were found and deleted and the count was 27,550 before that > ...

Q1
There have been no major changes in terms of clients and datasets. What could possibly justify a jump from 32,525 to 8,745,187 in 3 months?

Difficult to say without the files themself, or the job records/logs associated.
For example it can be files coming from a cache, a new server, etc...

Usually, you should find the top producers, and just by listing the files, you
will get your answer.

Q2
I have never run ".bvfs_clear_cache yes" before typing yes.
Is it really a necessary step requiring opening a second shell and running this command manually?

It is not recommended to clear the Path entries all the time because the
bvfs cache building process is quite slow. You might want to clean it up
once every 6 months, or based on a number of records.

Is there any reason this step hasn't been directly incorporated into "dbcheck"?

Yes, dbcheck will not drop this cache for the reason I gave just before.

Side note, switching to a recent version of Bacula will make dbcheck almost
useless because the Filename entries are no longer in a separated table.

Only the Path table will need a cleanup if it becomes too big to fit in memory.

Best Regards,
Eric


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to