How come my 20 GB disk is full!?

Ubuntu 20.04, Asterisk + Free PBX 15.

My server is just sitting idle and ready to go, we’re not yet using it. Last week I was notified that the 20 GB disk was full. I managed to remove 6 GB or so, but there are still plenty of gigabytes of irrelevant log-data left on this device…!

What’s piling up!? I understand, Fail2ban is saving logs…

Are the logs rotating properly? Are the log cron jobs running? We had an issue where the full log rotation job was broken, which caused the full log to never rotate. It stayed that way until the drive maxed out.

There are two commands that will help you here.

df -h

This command will output your storage values in human readable format

du -sh *

Run this command in your root directory first. This will show you the size of each directory. Then, you can navigate to the directory of choice. For example, /var/log and run that command again. It will show you the size of all your directories.

This is how you can identify where all of your storage is going and then decide how you may need to modify items.

Thank you all for comments! What I did yesterday was to turn off the swap file.

These files remain for some reason:
admin@pangolin:/usr/src$ sudo du -sh *
1.3G asterisk-18
108M linux-headers-5.4.0-88
25M linux-headers-5.4.0-88-generic
108M linux-headers-5.4.0-89
25M linux-headers-5.4.0-89-generic
108M linux-headers-5.4.0-90
25M linux-headers-5.4.0-90-generic
68K vpb-driver.tar.bz2

admin@pangolin:/var/log$ sudo du -sh * | grep G
1.1G journal

x x x x x

I never manage to clear och to clean the journal… But at least there are space left on the device at the moment.

I’m still curious about the rotating log files! :slight_smile:

The Asterisk log is about 1 GB, full:

What’s the size of your Asterisk log!?

x x x x x x x x x x

admin@pangolin:/var/log/asterisk$ ls -lah
total 1.1G
drwxrwxr-x 5 asterisk asterisk 4.0K Oct 4 14:23 .
drwxrwxr-x 12 root syslog 4.0K Nov 16 12:31 …
drwxrwxr-x 2 asterisk asterisk 4.0K Sep 14 13:17 cdr-csv
drwxrwxr-x 2 asterisk asterisk 4.0K Sep 14 13:17 cdr-custom
drwxrwxr-x 2 asterisk asterisk 4.0K Sep 14 13:17 cel-custom
-rw-rw-r-- 1 asterisk asterisk 0 Sep 15 06:31 core-fastagi_err.log
-rw-rw-r-- 1 asterisk asterisk 660 Nov 15 12:59 core-fastagi_out.log
-rw-rw-r-- 1 asterisk asterisk 64M Nov 16 12:44 freepbx.log
-rw-rw-r-- 1 asterisk asterisk 16K Nov 6 07:49 freepbx_security.log
-rw-r–r-- 1 asterisk asterisk 965M Nov 16 12:45 full
-rw-rw-r-- 1 asterisk asterisk 0 Nov 12 08:07 full.0
-rw-rw-r-- 1 asterisk asterisk 0 Sep 15 08:49 gql_api_error.log
-rw-rw-r-- 1 asterisk asterisk 7.4K Nov 16 12:31 queue_log
-rw-rw-r-- 1 asterisk asterisk 21K Nov 12 08:20 ucp_err.log
-rw-rw-r-- 1 asterisk asterisk 31K Nov 12 08:20 ucp_out.logfet text

x x x x x x
The freepbx.log contain loads of information… help me solve these things!

[2021-09-15 08:28:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-09-15 08:28:02] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-09-15 08:29:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-09-15 08:29:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []

[2021-10-24 18:38:01] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-10-24 18:38:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-10-24 18:38:01] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []

The Setting, I assume!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.