Disk size /var suddenly increasing

Report bugs and workarounds
Post Reply
dwmp
Posts: 54
Joined: 05 Feb 2016 13:42

Disk size /var suddenly increasing

Post by dwmp »

Hello,

we have EFA 3.0.2.6 installed. I saw that since a few weeks the free disk space of /var is continuously decreasing. Normally the free disk space has been nearly the same for years.
It seems that /var/spool/MailScanner/quarantine is increasing, though retention is on 60 days and has not been changed. Also the retention seems to work, since there are only directories included from the last 60 days.
Nevertheless the free disk space is getting lower every day.
We didn't do any changes so I have no idea what the reason can be.

Has anybody an idea?
Thanks in advance

BR
dwmp
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Disk size /var suddenly increasing

Post by henk »

You could check the cron maintenance jobs for errors. or consider to lower retension to less than 60 days.
Did you move the dcc cron job from montly to daily? viewtopic.php?t=2610

Check number of dcc files:

Code: Select all

ls -l /var/dcc/log |wc -l
Delete old files from /var/dcc/log ( or run the dcc cron job)

Code: Select all

find /var/dcc/log -mtime +1 -print | xargs rm -f
Check quarantine space

Code: Select all

find /var/spool/MailScanner/quarantine -maxdepth 1 -type d ! -name '.' -exec du -sh {} \;
Check number of files:

Code: Select all

 ls -l /var/spool/MailScanner/incoming/SpamAssassin-Temp | wc -l
Always nice to know: Mysql space

Code: Select all

find /var/lib/mysql/ -maxdepth 1 -type d ! -name '.' -exec du -sh {} \;
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
dwmp
Posts: 54
Joined: 05 Feb 2016 13:42

Re: Disk size /var suddenly increasing

Post by dwmp »

Thank you for your reply!
I did not change any cron jobs

Code: Select all

ls -l /var/dcc/log |wc -l
=> 3486

If I go into that directory and run the command "du -h" I get around 81 MB. That seems to be not the problem.

Code: Select all

find /var/spool/MailScanner/quarantine -maxdepth 1 -type d ! -name '.' -exec du -sh {} \;
=> list of sub-directories of the last 60 days

Code: Select all

find /var/lib/mysql/ -maxdepth 1 -type d ! -name '.' -exec du -sh {} \;
=> total size of 514 MB

The directory /var/spool/MailScanner/quarantine is growing, today in the morging it had around 12,75 GB, now it has 12,80 GB. Though there are only subdirectories of the last 60 days (so retention seems to work), also the directories seem to be not bigger as in the past (But that I can not tell for sure).

I will reduce retention to 35 days and see what will happen. That is really strange.

Thanks!
dwmp
Posts: 54
Joined: 05 Feb 2016 13:42

Re: Disk size /var suddenly increasing

Post by dwmp »

Ok forget the comment to increasing 12,75 GB to 12,80 GB, I assume retention will be done one time a day, so that (normally temporarily) increase is of course obvious/normal because of the incoming mails.
dwmp
Posts: 54
Joined: 05 Feb 2016 13:42

Re: Disk size /var suddenly increasing

Post by dwmp »

Update: It seems that the editing of the retention setting and a reboot were sufficient to resolve the problem. Free space is steady for now.
Thanks
Post Reply