/dev/mapper/centos-root is 100% full
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
du -sch * --exclude=home
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/0du -sch * --exclude=home
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
-
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. 0 -
@vacancy How can I move or back up to the home directory? can be done in whm settings? 0 -
[CODE=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/backup0 -
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 0
Please sign in to leave a comment.
Comments
4 comments