Kernel Version 2.6.18-128.1.10.el5 (SMP)
Distro Name CentOS release 5.3 (Final)
Asterisk 1.4.22-4
~ 25 extensions
PRI
Rhino box, and Rhino PRI TDM
140GB HDD
3 months ago, I noticed the diskspace was critical. I checked and it’s backups had never been deleted (4yrs). I removed about 3 years of backups, and diskspace was down around 20%.
Today I look at the box, user complaints, and it’s at 98%. I checked the backups, and removed them all, about 3-6months worth. It freed up 5%. There are no backups. I checked users VMs. There are less than 30 VMs on the server. I checked emails - I removed about 8K emails from PostFix - but that was only about 20Mb. It’s at 93% full, and I can’t tell what is taking up all the diskspace.
OK - yea … so my event_log is over 134GB
I think I may have turned my logging to Debug level. Can I just delete the that log file. Isn’t there a way to cap - put on a size limit.
(has turned into more of a Linux Q over an Asterisk one)
Normally logrotate should take care of that, including history saved and compression applied, you should investigate /etc/logrotate* and get it working.
A quick fix is not delete the file but truncate it with
Yea, you have to add the asterisk (and now freepbx) logrotate scripts. I don’t know why the Asterisk “make samples” or FreePBX “install_amp” doesn’t add that but it’s still very much a manual thing that needs to be done. Maybe because different Linux distributions use different directories for that?