Fatal Error?

hi danielf,

how i can have more space? can i remove cdr log?

Thank you

Hi,

You need to search what are your biggest files and delete them.
You can check your disk usage like this:

df -h

Thank you,

Daniel Friedman
Trixton LTD

yes i think soā€¦ itā€™s fullā€¦
this is the image

Sure is the cdr report to make full my disk (is a cloud server with no big space).
How i can delete the space used from cdr?

Thank you

i increesed space on my server, 10 GB more, now i have a total of 20 GB but if i try to go on the admin page of freepbx i receive the same errorā€¦
And if i try to start myslq i have the failed message:

[root@voip asterisk]# service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting mysqld: [FAILED]

ok i undestand the problem.
I increesed the space on the admin panel of my webfarm but i not activate it.
Now i made it and all is working.
Thank you for your support

in the /var/log/asterisk i removed file ā€œfullā€ and ā€œfail2banā€ because was to big (about 2 giga per file)
Now i create it like before.

Can i delete all inside this files every week?
Because soon this become big and my space will finish
Or can i delete this 2 files?

Thank you

Your best solution is to use the linux utility ā€œlogrotateā€ the config files are in /etc/logrotate.conf and its ā€œdrop directoryā€ /etc/logrotate.d/ you can edit the log file rotation/retention by frequency, number, size, compression and many other things, but all the files that need to be rotated need to be specified, Do NOT delete ā€œraw log filesā€ just rotate them out or ā€œbad thingsā€ can happen. To get you started

man logrotate

I would note that back on Oct 23th. You told me that that was not your problem, we could have fixed it then.

hello dicko
thank you for your reply.
Today i had the same problem and i deleted and created the logs file.
In the logrotate.conf file what i can edit?
Can i overwrite this log files? So i have always the same maximum size.

This is my actual content file:

# see ā€œman logrotateā€ for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp and btmp ā€“ weā€™ll rotate them here
/var/log/wtmp {
** monthly**
** create 0664 root utmp**
** minsize 1M**
** rotate 1**
}

/var/log/btmp {
** missingok**
** monthly**
** create 0600 root utmp**
** rotate 1**
}

# system-specific logs may be also be configured here.