morteza3245

Well-Known Member
Sep 16, 2013
160
1
68
cPanel Access Level
Root Administrator
Hello
my this directory "/dev/sda3" is 83% full, how i can remove file for empty that?

[email protected] [/home2/backup/cpbackup]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 56G 44G 8.9G 84% /
tmpfs 32G 0 32G 0% /dev/shm
/dev/sda1 194M 85M 100M 46% /boot
/dev/md0 1.8T 86G 1.6T 6% /home
/dev/sdb1 1.8T 193G 1.6T 12% /home2
/usr/tmpDSK 3.9G 123M 3.6G 4% /tmp
[email protected] [/]# du -sh /*
7.9M /bin
79M /boot
200K /dev
28K /error_log
33M /etc
du: cannot access `/home/cagefs-skeleton/proc/522315/task/522315/fd/4': No such file or directory
du: cannot access `/home/cagefs-skeleton/proc/522315/task/522315/fdinfo/4': No such file or directory
du: cannot access `/home/cagefs-skeleton/proc/522315/fd/4': No such file or directory
du: cannot access `/home/cagefs-skeleton/proc/522315/fdinfo/4': No such file or directory
108G /home
193G /home2
341M /lib
29M /lib64
16K /lost+found
4.0K /media
0 /misc
0 /net
96M /opt
du: cannot access `/proc/522315/task/522315/fd/4': No such file or directory
du: cannot access `/proc/522315/task/522315/fdinfo/4': No such file or directory
du: cannot access `/proc/522315/fd/4': No such file or directory
du: cannot access `/proc/522315/fdinfo/4': No such file or directory
0 /proc
20K /quota.user
377M /root
15M /sbin
0 /scripts
4.0K /selinux
4.0K /srv
512M /swapfile1
0 /sys
du: cannot access `/tmp/session_mm_litespeed758.sem': No such file or directory
62M /tmp
8.8G /usr
34G /var
[email protected] [/var]# du -sh *
4.0K account
120M cache
503M cagefs
0 clamd
597M cpanel
4.0K crash
4.0K cvs
8.0K db
8.0K empty
4.0K games
410M lib
4.0K local
16K lock
32G log
2.1M lve
0 mail
523M named
4.0K nis
4.0K opt
4.0K preserve
72K profiles
380K run
20M spool
62M tmp
12K yp
[email protected] [/var]#
Thanks!
 

kernow

Well-Known Member
Jul 23, 2004
1,020
62
178
cPanel Access Level
Root Administrator
Listed above, your directory /var/log is using up 32GB. Open that up and find out what logs are taking up all the space and then empty/delete them. Check your logs are rotating properly against the setting im WHM>>>>Tweak settings>>>Logging
 

morteza3245

Well-Known Member
Sep 16, 2013
160
1
68
cPanel Access Level
Root Administrator
i see these Have much size:
=======
5.8G messages-20130915
9.1G messages-20130922
11G messages-20130929
=======
they are log for which service?
how i can remove them compatible with Cpanel?

[email protected] [/var/log]# du -sh *
12K anaconda.ifcfg.log
24K anaconda.log
396K anaconda.program.log
800K anaconda.storage.log
112K anaconda.syslog
32K anaconda.xlog
64K anaconda.yum.log
26M audit
156K bandwidth
28K boot.log
8.0K btmp
732K cagefs-update.log
7.4M chkservd.log
24K clam-update.log
1.9M cldeploy.log
8.0K ConsoleKit
4.3M cpanel-install.log
864K cron
648K cron-20130908
2.7M cron-20130915
3.3M cron-20130922
3.0M cron-20130929
4.0K cups
1.9M cxs.log
148K cxs.scan
156K cxswatch.log
28K cxswatch.log-20130929.gz
2.5M dcpumon
100K dmesg
100K dmesg.old
480K dracut.log
12M exim_mainlog
4.3M exim_mainlog-20130908.gz
38M exim_mainlog-20130915.gz
45M exim_mainlog-20130922.gz
7.0M exim_mainlog-20130929.gz
0 exim_paniclog
20K exim_paniclog-20130908.gz
4.0K exim_paniclog-20130915.gz
4.0K exim_paniclog-20130922.gz
4.0K exim_paniclog-20130929.gz
52K exim_rejectlog
36K exim_rejectlog-20130908.gz
476K exim_rejectlog-20130915.gz
316K exim_rejectlog-20130922.gz
224K exim_rejectlog-20130929.gz
140K lastlog
0 lfd.log
4.0K lfd.log-20130929.gz
268K maillog
1.5M maillog-20130908
912K maillog-20130915
916K maillog-20130922
896K maillog-20130929
0 mcelog
5.1G messages
429M messages-20130908
5.8G messages-20130915
9.1G messages-20130922
11G messages-20130929
25M munin
4.0K ntpstats
32K prelink
36K quota_enable.log
80K rkhunter.log
8.0K rkhunter.log.old
11M sa
8.0K samba
4.0K secure
188K secure-20130908
24K secure-20130915
8.0K secure-20130922
12K secure-20130929
0 spooler
0 spooler-20130908
0 spooler-20130915
0 spooler-20130922
0 spooler-20130929
4.0K sssd
0 tallylog
4.0K up2date
12K up2date-20130908
16K up2date-20130915
16K up2date-20130922
24K up2date-20130929
4.0K varnish
96K wtmp
4.0K xferlog.offset
4.0K xferlog.offsetftpsep
28K yum.log
[email protected] [/var/log]#
Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

The "/var/log/messages" log file contains system messages (e.g. FTP, Named). Feel free to view the file directly to see what type of information is logged. You can delete the following files/directories if you do not require the old logged data:

Code:
5.8G messages-20130915
9.1G messages-20130922
11G messages-20130929
Thank you.