Drive Warning: rootfs (/) is 83% full

bhanuprasad1981

Well-Known Member
Aug 5, 2008
222
0
66
India
got this mail today from cpanel not sure what drive it is and what data is storing there

this is my /etc/fstab:-

Code:
/dev/sda1	/	ext3	errors=remount-ro,usrquota	0	1
/dev/sda2	/home	ext3	defaults,usrquota,noatime,usrquota	0	2
proc		/proc	proc	defaults		0	0
sysfs		/sys	sysfs	defaults		0	0
tmpfs		/dev/shm	tmpfs	defaults,noexec,nosuid	0	0
devpts		/dev/pts	devpts	defaults	0	0
/tmp             /var/tmp                    ext3    defaults,usrquota,bind,noauto        0 0

cpanel disk usage show this :-

/dev/root 20G 15G 3.9G 80% /


please help
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Well, you might check for those backups in root and remove them if you find any, once the account has been restored properly.

For example if you attempted to restore an account and it failed for some reason, that backup might have been left behind, using up all your space in root. (I'm guessing here of course)

Have you taken a look at whats in there?
 

bhanuprasad1981

Well-Known Member
Aug 5, 2008
222
0
66
India
no backups failed and /root has no big files here are some details :-

Code:
[email protected] [~]# du -sh /*
4.0K    /
12K     /aquota.user
7.7M    /bin
13M     /boot
108K    /dev
4.0K    /error_log
83M     /etc
35G     /home
1.4M    /installd
536K    /latest
25M     /lib
25M     /lib64
16K     /lost+found
4.0K    /media
4.0K    /mnt
4.0K    /mysqltmp
37M     /opt
0       /proc
16K     /quota.user
12M     /root
38M     /sbin
0       /scripts
5.4M    /scripts.20120303.014606.7075
20K     /selinux
4.0K    /srv
0       /sys
22M     /tmp
8.1G    /usr
5.9G    /var
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
Hello :)

Judging from the email, and the contents of /etc/fstab, it's not the "/root" directory itself, but rather the primary "/" directory. It appears this includes the following on your system:

/usr
/var

You would need to remove files from these directories to free up space, or consider increasing the size of your partitions.

Thank you.
 

bhanuprasad1981

Well-Known Member
Aug 5, 2008
222
0
66
India
it seems correct , i deleted one nginx log sized 3gb from /var partition and yes diskusage changed , so any safe way to move whole var folder to /home ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
I would not advise creating a symbolic link from "/var" to the home directory. There are too many factors involved that could result in unexpected behavior. Instead, if you need more disk space, you should consider consulting with your data center to determine the best method to repartition your drive.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
any idea what is that large file ? in /usr folder called "tmpDSK" yesterday i ran script secure temp to increase /tmp size
Yes, this file is where the data for your /tmp partition is stored. You should not remove this file.

Thank you.