[Ma-linux] Cleaning up /var
Jay Hart
jhart at kevla.org
Fri Nov 28 08:03:45 EST 2008
> On Thu, Nov 27, 2008 at 06:16:23PM -0500, Jay Hart wrote:
>> I noticed that /var on my email/web server is down to 175MB free space. the
>> partition is 5.1GB, so something(s) eating up space.
>>
>> I noticed that I have a lot of directories or files in /var/spol/amavis/tmp.
>>
>> The directories all start as amavis-yearmonthday(something), while the files
>> all start as clamav-(somthing).
>>
>> They range in date (created) from Jan 2007 to todays date.
>>
>> I feel that I can safely delete the bulk of these files without any
>> problems.
>>
>> Can someone confirn this?
>
>
> Check the AMaViS docs, but IIRC those are the quarantined messages. If
> nobody has complained that an important message has not arrived, and you
> are confident in ClamAV's diagnostic abilities, then delete them all.
>
>
> --
> /*********************************************************************\
> **
> ** Joe Yao jsdy at tux.org - Joseph S. D. Yao
> **
> \*********************************************************************/
>
Yes the amavis stuff is quarantine items. I deleted all of the amavis-whatever
directories older than this month. So far everything woking fine. Now, to the
clamav files.
Each file is the same size, 5.2+MB, I have about 6-8 per day, earliest file
date is 10-2-08, most recent was yesterday (when I last checked). I'm not
sure what these files might be, I can't view them. /var/spool/amavis/tmp is
used for amavis tmp files, but I couldn't find any reference from clamav or
freshclam showing they would store tmp files in the same directory. I think
the clamav tmp dir is /var/tmp. Looking in that dir shows no (old) tmp files.
Since the oldest file date is 10-2-08, it looked like a script was running to
clean these files up based on a certain age. I couldn't see any scripts from
cron that were doing this, so again I'm wondering about these files.
Other comments???
Jay
More information about the Ma-linux
mailing list