[App_rpt-users] hda1 cleanup

Tim Sawyer tisawyer at gmail.com
Mon Sep 7 21:50:38 UTC 2015


Or use logrotate. Google it... here's how I do it...

[root at Huntington logrotate.d]# cat asterisk
/var/log/asterisk/messages /var/log/asterisk/*log {
   monthly
   rotate 12
   missingok
   notifempty
   sharedscripts
   postrotate
   /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
   endscript
}
[root at Huntington logrotate.d]# pwd
/etc/logrotate.d
[root at Huntington logrotate.d]#

On Mon, Sep 7, 2015 at 12:53 PM, David McGough <kb4fxc at inttek.net> wrote:

>
> If you're not concerned about saving debug info, just delete the file. You
> may have to restart Asterisk to get it to "let loose" of the old file.
>
> If you do need debug into, mv the messages file to another name (like:
> messages.20150907) and then gzip it; that log is -very- compressible.
>
>
>
> On Mon, 7 Sep 2015, kk6ecm wrote:
>
> > astdb is small - 8k, but /var/log/asterisk/messages is 16G!... can I just
> > delete it, and it will start over again. Otherwise, how do I shrink it
> down?
> >
> >
> >
> > Thanks much!
> >
> > Bob
> >
> > kk6ecm
> >
> >
> >
> >   _____
> >
> > From: Jim Duuuude [mailto:telesistant at hotmail.com]
> > Sent: Monday, September 07, 2015 12:30 PM
> > To: David McGough; kk6ecm
> > Cc: app_rpt mailing list
> > Subject: RE: [App_rpt-users] hda1 cleanup
> >
> >
> >
> > Also, /var/lib/asterisk/astdb can grow HUGE (for no "good" reason).
> >
> > > Date: Mon, 7 Sep 2015 15:19:01 -0400
> > > From: kb4fxc at inttek.net
> > > To: kk6ecm at gmail.com
> > > CC: app_rpt-users at ohnosec.org
> > > Subject: Re: [App_rpt-users] hda1 cleanup
> > >
> > >
> > > Check out the /var/log directory, including /var/log/asterisk
> > >
> > >
> > >
> > > On Mon, 7 Sep 2015, kk6ecm wrote:
> > >
> > > > We have an ACID build on one of our repeaters that has been
> crashing. It
> > > > appears hda1 is full. I'm looking for suggestions to clean it up.
> > > >
> > > > Filesystem Size Used Avail Use% Mounted on
> > > > /dev/hda1 18G 18G 0 100% /
> > > > tmpfs 375M 0 375M 0% /dev/shm
> > > >
> > > > [root at xxx /]# du -ks /* | sort -nr | head
> > > > 16124492 /var
> > > > 1466656 /usr
> > > > 126644 /lib
> > > > 91508 /etc
> > > > 30580 /sbin
> > > > 11004 /boot
> > > > 7336 /bin
> > > > 932 /tmp
> > > > 172 /root
> > > > 92 /dev
> > > > [root at xxx /]#
> > > >
> > > > with just a few bytes in root... I can't account for 18G used of disk
> > space.
> > > > My other ACID build looks good and only uses about 2.7 G.
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > > Bob
> > > > kk6ecm
> > > >
> > > > _______________________________________________
> > > > App_rpt-users mailing list
> > > > App_rpt-users at ohnosec.org
> > > > http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
> > > >
> > > > To unsubscribe from this list please visit
> > http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll
> down to
> > the bottom of the page. Enter your email address and press the
> "Unsubscribe
> > or edit options button"
> > > > You do not need a password to unsubscribe, you can do it via email
> > confirmation. If you have trouble unsubscribing, please send a message to
> > the list detailing the problem.
> > > >
> > >
> > > _______________________________________________
> > > App_rpt-users mailing list
> > > App_rpt-users at ohnosec.org
> > > http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
> > >
> > > To unsubscribe from this list please visit
> > http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll
> down to
> > the bottom of the page. Enter your email address and press the
> "Unsubscribe
> > or edit options button"
> > > You do not need a password to unsubscribe, you can do it via email
> > confirmation. If you have trouble unsubscribing, please send a message to
> > the list detailing the problem.
> >
> >
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> To unsubscribe from this list please visit
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down
> to the bottom of the page. Enter your email address and press the
> "Unsubscribe or edit options button"
> You do not need a password to unsubscribe, you can do it via email
> confirmation. If you have trouble unsubscribing, please send a message to
> the list detailing the problem.
>



-- 
--
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20150907/b14715d0/attachment.html>


More information about the App_rpt-users mailing list