Autor: Marcin MirosławData: 2012-11-23 13:07 UTC A: exim-usersAssumpte: Re: [exim] exim_tidydb doesn't make databases smaller
W dniu 23.11.2012 13:32, Arkadiusz Miśkiewicz pisze:
> Hi.
>
> Shouldn't exim_tidydb make databases physically smaller?
>
> # ls -al /var/spool/exim/db/callout
> -rw-r----- 1 exim exim 677601280 11-23 13:25 /var/spool/exim/db/callout
>
> # exim_tidydb -t 2d /var/spool/exim/ callout > /dev/null
> # ls -al /var/spool/exim/db/callout
> -rw-r----- 1 exim exim 677601280 11-23 13:25 /var/spool/exim/db/callout
>
> # exim_tidydb -t 1d /var/spool/exim/ callout > /dev/null
> # ls -al /var/spool/exim/db/callout
> -rw-r----- 1 exim exim 677601280 11-23 13:26 /var/spool/exim/db/callout
>
> # exim_tidydb -t 0d /var/spool/exim/ callout > /dev/null
> # ls -al /var/spool/exim/db/callout
> -rw-r----- 1 exim exim 677593088 11-23 13:27 /var/spool/exim/db/callout
>
> and no, no errors, after few calls it made db empty:
> # exim_tidydb -t 0d /var/spool/exim/ callout
> Tidying Exim hints database /var/spool/exim//db/callout
> Tidying complete
>
> but still
>
> -rw-r----- 1 exim exim 677593088 11-23 13:28 /var/spool/exim/db/callout
>
> The problem is that it grows and grows filling my /var. How to make it shrink
> db?
Hi Arek!
> # exim_tidydb -t 0d /var/spool/exim/ callout
> Tidying Exim hints database /var/spool/exim//db/callout
> Tidying complete
This shows that exim_tidydb didn't remove any record so database can't
be shrinked. exim_tidydb prints every removed records so you shold be
flooded with messages:
deleted 123A41E@??? (too old)
deleted 0E906B278@??? (too old)
deleted 08E3791@??? (too old)
deleted 0836A544@??? (too old
What exim_dumpdb says about callout database?
Marcin