/dev/mapper/centos-root is 100% full
My /dev/mapper/centos-root is mapped to / and is 99% 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.
df -h
[root@s2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 12G 0 12G 0% /dev
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 12G 1.2G 11G 10% /run
tmpfs 12G 0 12G 0% /sys/fs/cgroup
/dev/mapper/centos_s22-root 50G 50G 929M 99% /
none 12G 6.5M 12G 1% /var/lve/dbgovernor-shm
/dev/sdb1 234G 194G 28G 88% /home5
/dev/sda2 1014M 178M 837M 18% /boot
/dev/sda1 200M 9.8M 190M 5% /boot/efi
/dev/mapper/centos_s22-home 413G 375G 39G 91% /home
/dev/loop0 2.2G 11M 2.1G 1% /tmp
tmpfs 2.4G 0 2.4G 0% /run/user/0
du -sch * --exclude=home
[root@s2 ~]# du -sch * --exclude=home
4.0K anaconda-ks.cfg
48K cldeploy
24K cloudlinux_ea3_to_ea4
276K cpanel3-skel
3.0M cptechs
436K error_log
4.0K install.log
8.0K install.sh
4.0K legacy_ea3_distiller_files-1573085122.tar.gz
4.0M maldetect-1.6.4
1.5M maldetect-current.tar.gz
8.0K mysql-community-release-el7-5.noarch.rpm
4.0K pclzip-5cc80afed42a9.gz
0 perl5
4.3M tmp
0 version.dat.old
14M total
-
lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home centos_s22 -wi-ao---- 412.89g root centos_s22 -wi-ao---- 50.00g swap centos_s22 -wi-ao---- 11.81g [root@s2 ~]# du -x / | sort -nr | head -20 78976184 / 40761084 /usr 36565520 /var 30401924 /usr/share 29450740 /usr/share/cagefs-skeleton 20312796 /usr/share/cagefs-skeleton/var 18706380 /var/lib 18457456 /usr/share/cagefs-skeleton/var/lib 18444908 /var/lib/mysql 18444908 /usr/share/cagefs-skeleton/var/lib/mysql 8313764 /var/log 7778240 /usr/local 7694784 /usr/local/cpanel 6090872 /usr/share/cagefs-skeleton/usr 5548212 /var/cpanel 4892248 /var/cpanel/bandwidth 4023668 /usr/local/cpanel/logs 3917068 /usr/share/cagefs-skeleton/usr/local 3573752 /usr/share/cagefs-skeleton/usr/local/cpanel 3108976 /usr/local/cpanel/logs/archive [root@s2 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home centos_s22 -wi-ao---- 412.89g root centos_s22 -wi-ao---- 50.00g swap centos_s22 -wi-ao---- 11.81g [root@s2 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 475.9G 0 disk ??sda1 8:1 0 200M 0 part /boot/efi ??sda2 8:2 0 1G 0 part /boot ??sda3 8:3 0 474.7G 0 part ??centos_s22-root 253:0 0 50G 0 lvm / ??centos_s22-swap 253:1 0 11.8G 0 lvm [SWAP] ??centos_s22-home 253:2 0 412.9G 0 lvm /home sdb 8:16 0 237.5G 0 disk ??sdb1 8:17 0 237G 0 part /home5 loop0 7:0 0 2.2G 0 loop /var/tmp 0 -
Hey there! / contains all data that isn't inside of another partition. Looking at your specific output, this would include areas like /usr, /var, /root, and other areas of the system outside of /home. I like to use "du -h --max-depth 1" starting from /, and then working my way down through the directories until I find things I can remove. 0
Please sign in to leave a comment.
Comments
2 comments