Author Topic: Disk 100% /dev/mapper/centos_srv1-root  (Read 116 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disk 100% /dev/mapper/centos_srv1-root
« on: May 22, 2020, 05:48:49 PM »
Hello, i can't send emails and can't login into a WHM.... when i can.. it show this errors:

Code: [Select]
FilesystemMountedUse %Size
devtmpfs  /dev
0%1.8G
tmpfs  /dev/shm
0%1.8G
tmpfs  /run
1%1.8G
tmpfs  /sys/fs/cgroup
0%1.8G
/dev/mapper/centos_srv1-root  /
100%50G
/dev/sda2  /boot
19%1014M
/dev/mapper/centos_srv1-home  /home
3%411G
/dev/sda1  /boot/efi
6%200M


any have idea to solve it?
« Last Edit: May 22, 2020, 06:13:56 PM by KatiaSisHost »

Offline
*
Re: Disk 100% /dev/mapper/centos_srv1-home
« Reply #1 on: May 22, 2020, 05:59:06 PM »
It's your root that's filled, not /home! That is critical and will prevent most programs from running.

It is much better to have a separate /var and possibly /var/lib/mysql partition.

Code: [Select]
logrotate -f /etc/logrotate.conf is a good starting point, plus investigate the size of other logs in /var/log
« Last Edit: May 22, 2020, 06:01:32 PM by cynique »

Offline
*
Re: Disk 100% /dev/mapper/centos_srv1-home
« Reply #2 on: May 22, 2020, 06:16:47 PM »
It's your root that's filled, not /home! That is critical and will prevent most programs from running.

It is much better to have a separate /var and possibly /var/lib/mysql partition.

Code: [Select]
logrotate -f /etc/logrotate.conf is a good starting point, plus investigate the size of other logs in /var/log

i can't run "logrotate -f /etc/logrotate.conf"... no space  :-\...

i have a studens in a examen and the system crash and fails all time

Offline
*
Re: Disk 100% /dev/mapper/centos_srv1-root
« Reply #3 on: May 22, 2020, 06:19:28 PM »
Code: [Select]
rm -f /var/log/messages-*

Offline
*
Re: Disk 100% /dev/mapper/centos_srv1-root
« Reply #4 on: May 22, 2020, 06:33:06 PM »
Thanks you 4all!!!

now can run the follow commands to solve it (momently)

Code: [Select]
lvresize --size -40G /dev/mapper/centos_srv1-home


and

Code: [Select]
lvextend -L+10G -r /dev/mapper/centos_srv1-root
 ;D

Offline
***
Re: Disk 100% /dev/mapper/centos_srv1-root
« Reply #5 on: May 23, 2020, 03:50:15 AM »
You will be doing that constantly unless you find the problem.

cd /
du -h --max-depth=1

find where all of your space is going.  Keep CD'ing down and rerunning du -h --max-depth=1 until you find out what files are hogging your space.
Google Hangouts:  rcschaff82@gmail.com