[BlueOnyx:15789] Re: /var partition frequently filling up
Greg Kuhnert
gkuhnert at compassnetworks.com.au
Sat Aug 16 21:07:16 -05 2014
Hi Felix.
On 17 Aug 2014, at 7:27 am, Felix Kaegi <f.kaegi at fairtalk.com> wrote:
> Hi
>
> Just noted the huge size of mtalog.myd and mtalog.myi
> in var/lib/mysql/mailscanner
>
> Can these files be deleted?
>
Dont delete... but you can truncate the table in mysql to remove all existing records in the table.
GK
> Best regards
> Felix
>
>
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf OfGustavo Silva
> Sent: Dienstag, 12. August 2014 22:01
> To: BlueOnyx General Mailing List
> Subject: [BlueOnyx:15776] Re: /var partition frequently filling up
>
> Hey !
> Glad I could help.
>
> Since you activated compression just now, it will run on the next weekly (maybe) logrotate run.
>
> Usually /etc/logtorate.d/syslog takes care of that.
>
> Are you missing that configuration file?
>
> /var/log/messages (syslog) requires specific configuration and its usually part of the linux distro.
>
> Cheers!
> Gustavo
>
>
>
> 2014-08-12 20:23 GMT+01:00 Felix Kaegi <f.kaegi at fairtalk.com>:
> Hi Gustavo
>
> Thanks for the tips. I changed the rotate length and activated the compression.
>
> Would you know where I find the individual settings for the log files ‘messages’ and ‘btmp’?
>
> Best wishes
> Felix
>
>
>
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf OfGustavo Silva
> Sent: Dienstag, 12. August 2014 19:09
>
> To: BlueOnyx General Mailing List
> Subject: [BlueOnyx:15774] Re: /var partition frequently filling up
>
> Usually in my case, logs end up filling up the /var partition after a year or so. Check out the /etc/logrotate.conf and individual /etc/logrotate.d/ settings and also make sure compress is enabled. That should lower the usage. Hope this helps.
>
> Gustavo
>
>
> 2014-08-12 17:37 GMT+01:00 Felix Kaegi <f.kaegi at fairtalk.com>:
> Hi Steve
>
> Thanks for the hint.
>
> The main result is:
> 1419152 /var/lib
> 1299684 /var/log
>
> In /var/log it is mainly the messages and btmp files that occupy hundreds of megabytes.
>
> Any further help would be appreciated.
>
>
>
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf Of Steven Howes
> Sent: Dienstag, 12. August 2014 17:34
> To: BlueOnyx General Mailing List
> Subject: [BlueOnyx:15770] Re: /var partition frequently filling up
>
> On 12 Aug 2014, at 16:21, Felix Kaegi <f.kaegi at fairtalk.com> wrote:
> The /var partition on our SL/BlueOnyx server is frequently filling up. The partition has 4GB of disk space and BO reports a 96% disk usage and refuses to do YUM updates and even terminates the mail server.
>
> How best to resolve this on a permanent basis?
>
> Find out what’s causing it. Look around and see where the space has gone.
>
> Run:
>
> du --max-depth=1 /var
>
> And see where it’s all used. You can remove the /var of the end and CD into directories to see where it’s gone, working down through layers until you find it.
>
> Steve
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20140817/782b6b08/attachment.html>
More information about the Blueonyx
mailing list