Disk usage

A few weeks ago (just as I want on holiday) one of my clients mailed to tell me their FreePBX install wasn’t working. I logs in and noticed the disk was full. Since I was one foot in the plane, I expanded the volume and went on with my holiday. Now I have some time and am looking at different installs and see my own install also seems to be getting full. A few screenshots:

My client’s:


df-knoors

My own:


df-opolo

Another client:


df-fysio

The main difference is the first 2 are hosted on a Synology NAS and the last one on a Vultr server.

Main thing I’m wondering is “what is Other” and is there a way to clean files? I have already deleted larger log files

In ocasions when there is a disk storage leak, I normally use the following command to identify which are the folders with larger storage:

sudo du -h -d4 /boot /etc /home /opt /root /tmp /usr /var | sort -rh | head -n30

I ran that command on my own install and it gave me the following list:

5.1G /var
3.2G /var/www/html/admin
3.2G /var/www/html
3.2G /var/www
3.1G /var/www/html/admin/modules
2.6G /usr
1.3G /usr/lib
1.2G /var/lib
599M /home/asterisk
599M /home
597M /var/cache
596M /var/cache/yum/x86_64
596M /var/cache/yum
511M /usr/lib64
480M /usr/lib/firmware
476M /usr/lib/modules
449M /var/lib/mongodb
446M /usr/share
416M /var/lib/asterisk
385M /var/lib/mongodb/journal
358M /var/cache/yum/x86_64/7
350M /var/lib/asterisk/sounds
304M /home/asterisk/.package_cache/npm/6.4.1
304M /home/asterisk/.package_cache/npm
304M /home/asterisk/.package_cache
271M /var/log
244M /home/asterisk/.npm/_cacache
244M /home/asterisk/.npm
236M /usr/bin
235M /var/lib/asterisk/sounds/en

I however don’t know where I can clean up.

It depends on what FreePBX version you are using.
In FreePBX 17 /var/cache/yum can be completly removed (in Debian yum is not used) and MongoDB packages could also be removed.
I also find a bit strange 3.2G for /var/www/html/admin.
In my FreePBX 17 system, with only open source modules, it’s only 372M.
According with @penguinpbx, in a standard 17 install that folder has only 1.3G (see Drive Partition Layout Survey - #7 by penguinpbx).

I’m still on FreePBX 17 and I’m guessing there’s no way to upgrade from this version to Debian?

Are you running FreePBX 17 over CentOS?
Have you made a fresh install or an upgrade?

If your Linux distro is CentOS (which is not recommended/supported for FreePBX 17), /var/cache/yum is something normal to exist.

Regardless the Linux distro you are using, what is not normal in the disk usage that you reported for /var/www/html/admin (3.2G).

I have made a backup of my current install and I’m installing Debian as we speak. We’ll see what happens.

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