Gerlis

Registered
Nov 14, 2014
2
0
1
cPanel Access Level
Root Administrator
My /dev/mapper/centos-root is mapped to / and is 100% full. This is causing issues with services crashing and the server becoming unstable. However, I am not sure why this keeps happening. /home is far from full, where all user data is stored. I clear out /tmp with tmpwatch, I removed old logs in /var/log and any unnecessary files.

df -h

Code:
Filesystem                          Size  Used Avail Use% Mounted on
devtmpfs                            5.8G     0  5.8G   0% /dev
tmpfs                               5.8G     0  5.8G   0% /dev/shm
tmpfs                               5.8G  282M  5.6G   5% /run
tmpfs                               5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/mapper/centos_vardnn0315-root   50G   50G  544M  99% /
/dev/mapper/centos_vardnn0315-home  502G  120G  383G  24% /home
/dev/sda1                          1014M  194M  821M  20% /boot
tmpfs                               1.2G     0  1.2G   0% /run/user/0

du -sch * --exclude=home

Code:
41G     backup
0       bin
161M    boot
0       dev
56M     etc
0       lib
0       lib64
0       media
0       mnt
128M    opt
du: cannot access ‘proc/27926’: No such file or directory
du: cannot access ‘proc/29189’: No such file or directory
du: cannot access ‘proc/29366/task/29366/fd/4’: No such file or directory
du: cannot access ‘proc/29366/task/29366/fdinfo/4’: No such file or directory
du: cannot access ‘proc/29366/fd/4’: No such file or directory
du: cannot access ‘proc/29366/fdinfo/4’: No such file or directory
0       proc
4.0K    razor-agent.log
68M     root
282M    run
0       sbin
0       scripts
0       srv
0       sys
0       tmp
5.5G    usr
3.1G    var
50G     total
 

vacancy

Well-Known Member
Sep 20, 2012
480
169
93
Turkey
cPanel Access Level
Root Administrator
41G backup
3.1G var
5.5G usr

The calculation is correct.

When installing the server, 50 gb of space is reserved for the main directory and backup and other system directories have consumed this space.

You can move backups into /home directory.
 

vacancy

Well-Known Member
Sep 20, 2012
480
169
93
Turkey
cPanel Access Level
Root Administrator
Bash:
mkdir /home/backup
rsync -avp /backup/ /home/backup
Check that the backups have been moved to the /home/backup folder, then delete the backup folder in the main directory.

For new backups change the backup file path from "Backup configuration > Default Backup Directory" /backup to change /home/backup
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,272
313
Houston
Keep in mind if you move the backups to /home you will encounter issues with quotas if you use them.

A better solution to this would he to put backups on a separate mount rather than have them included in / or /home