Disk full messages

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I have been getting messages the last few days of my disks being full and I was curious if anyone has any ideas what might be happening.

Code:
# df -h
Filesystem                  Size  Used Avail Use% Mounted on
devtmpfs                    908M     0  908M   0% /dev
tmpfs                       919M   24K  919M   1% /dev/shm
tmpfs                       919M   97M  823M  11% /run
tmpfs                       919M     0  919M   0% /sys/fs/cgroup
/dev/mapper/centos_s1-root  6.0G   85M  6.0G   2% /
/dev/mapper/centos_s1-usr   5.0G  4.4G  679M  87% /usr
/dev/mapper/centos_s1-tmp  1014M   38M  977M   4% /tmp
/dev/mapper/centos_s1-home   23G  9.6G   14G  42% /home
/dev/vda1                  1014M  210M  805M  21% /boot
/dev/mapper/centos_s1-var    10G  2.4G  7.7G  24% /var
tmpfs                       184M     0  184M   0% /run/user/0
tmpfs                       184M     0  184M   0% /run/user/1002
At first I thought it might be backups, but I noticed that the home folder is fine. The issue seems to be the /usr folder.

As I'm writing this I'm thinking about Installatron. I believe I have that to auto-update Wordpress sites and backup before it does that. I'm not sure where those backups save. Could that be it?

I'm not overly skilled at nailing down linux issues (CentOS 7.9) and any help you could offer would be great.
 
I did a couple of commands and here is what I got:
Code:
# du -h ./usr --max-depth=1 | sort -hr
3.8G    ./usr
1.8G    ./usr/local
920M    ./usr/lib
408M    ./usr/share
311M    ./usr/lib64
240M    ./usr/bin
73M     ./usr/sbin
60M     ./usr/src
58M     ./usr/libexec
40M     ./usr/include
0       ./usr/games
0       ./usr/etc
Code:
# du -h ./local --max-depth=1 | sort -hr
1.8G    ./local
1.2G    ./local/directadmin
252M    ./local/php73
116M    ./local/lib
85M     ./local/bin
71M     ./local/icu
43M     ./local/installatron
23M     ./local/share
3.1M    ./local/include
3.0M    ./local/csf
84K     ./local/sysbk
36K     ./local/man
12K     ./local/libexec
12K     ./local/etc
0       ./local/src
0       ./local/sbin
0       ./local/safe-bin
0       ./local/php-imap
0       ./local/lib64
0       ./local/games
It seems the folder for directadmin is using up the most space. Is there anything I can do to pare that down? Or, should I increase the size of /usr? What's the best strategy here or is this indicative of a larger problem?
 
My /usr on a freshly installed Debian 10 server with DA is 5.4GB, with /usr/local/directadmin taking up 1.6GB. It will take more space the more software is built by custombuild (e.g. multiple PHP versions). The usage of your /usr seems pretty standard. It will not change much, apart from when custombuild is running and downloading/building new versions of software. If you have custombuild update mysql/mariadb, it will take up quite a lot of space (4-8GB is likely) during update though, so you should take that into account.

I would suggest extending your /usr a little bit.
 
Can anyone share the commands with me to take 1G from my /home partition and add it to my /usr partition?
 
Shrinking filesystems is generally not recommended, and should definately not be done while they're mounted. If you have any free space in your volume group (check with vgs), you can easily extend your usr partition though:

Bash:
lvextend -r -L+1G /dev/mapper/centos_s1-usr
 
Back
Top