Bashy

Well-Known Member
Feb 20, 2011
73
13
58
Hi folks

I am getting
Code:
Notification Type:    critical  ⛔
Server:    ****************
Primary IP Address:    ***.***.***.***
Filesystem:    /var/tmp
Mount Point:    /var/tmp
Percent Used:   
94.06%   
Disk Block Usage:   
Used:    43.01 GB
Available:    2.87 GB
Total:    48.32 GB
ChkServd Version:    17.0

Disk usage as follows,

Code:
Current Disk Usage
Filesystem      Size  Used Avail Use% Mounted on
rootfs           49G   39G  7.1G  85% /
/dev/root        49G   39G  7.1G  85% /
devtmpfs        7.9G  336K  7.9G   1% /dev
/dev/sda3       1.8T  7.7G  1.7T   1% /home
tmpfs           7.9G     0  7.9G   0% /dev/shm
/dev/root        49G   39G  7.1G  85% /var/tmp
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/bin
devtmpfs        7.9G  336K  7.9G   1% /home/virtfs/*******/dev
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/lib
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/opt
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/tmp
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/usr
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/sbin
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/lib64
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/log
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/tmp
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/mail
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/usr/sbin
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/spool
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/pki/tls
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/alternatives
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/cpanel/email_send_limits
/dev/sda3       1.8T  7.7G  1.7T   1% /home/virtfs/*******/home/*******
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/bin
devtmpfs        7.9G  336K  7.9G   1% /home/virtfs/*******/dev
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/lib
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/opt
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/tmp
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/usr
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/sbin
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/lib64
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/log
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/tmp
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/mail
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/usr/sbin
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/spool
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/pki/tls
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/etc/alternatives
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/cpanel/email_send_limits
/dev/sda3       1.8T  7.7G  1.7T   1% /home/virtfs/*******/home/*******
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/cpanel/php/sessions
/dev/root        49G   39G  7.1G  85% /home/virtfs/*******/var/cpanel/php/sessions

might be wrong but, i think those jailed accounts are the cause?
So, whats the best way around this please? im gonna say probably increasing the size?
If so, how please?
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

It cannot be the virtfs, the reason being it is on /home and it is s separate partition..
Try releasing the space from the unwanted log file. This should be sufficient if those tend to get heavy with disk space utilisation ..
 

Bashy

Well-Known Member
Feb 20, 2011
73
13
58
Hi,

It cannot be the virtfs, the reason being it is on /home and it is s separate partition..
Try releasing the space from the unwanted log file. This should be sufficient if those tend to get heavy with disk space utilisation ..
Ah, good point :rolleyes:

Thanks for the advice, please could you explain how, sorry, although i have had a dedi for years, its rare i come across
an issue but when i do, sadly i dont know enough to resolve it myself :confused:
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Check the logs in the location:

# cd /var/log/ && du -sch *
# cd /usr/local/apache/logs && du -sch *
# cd /usr/local/cpanel/logs && du -sch *

You see the space it is utilizing...
 

Bashy

Well-Known Member
Feb 20, 2011
73
13
58
Ah, silly me, thanks, here is the ouptut, not a vast amount, under well under 2gb total
munin @ 1.1gb is a large contender here.


Code:
cd /var/log/ && du -sch *
3.9M    archive
4.0K    audit
1.9M    bandwidth
0       boot.log
0       btmp
0       btmp-20170501
9.0M    chkservd.log
492K    clam-update.log
8.0K    ConsoleKit
7.0M    cpanel-install.log
3.4M    cron
2.0M    cron-20170423
2.0M    cron-20170430
2.0M    cron-20170507
2.0M    cron-20170514
3.4M    dcpumon
40K     dmesg
40K     dmesg.old
2.0M    exim_mainlog
112K    exim_mainlog-20170430.gz
112K    exim_mainlog-20170507.gz
112K    exim_mainlog-20170514.gz
104K    exim_mainlog-20170521.gz
0       exim_paniclog
4.0K    exim_paniclog-20170430.gz
4.0K    exim_paniclog-20170507.gz
4.0K    exim_paniclog-20170514.gz
4.0K    exim_paniclog-20170521.gz
8.0K    exim_rejectlog
4.0K    exim_rejectlog-20170430.gz
4.0K    exim_rejectlog-20170507.gz
4.0K    exim_rejectlog-20170514.gz
4.0K    exim_rejectlog-20170521.gz
52K     lastlog
16K     lfd.log
4.0K    lfd.log-20170521.gz
8.1M    maillog
4.7M    maillog-20170423
4.7M    maillog-20170430
4.7M    maillog-20170507
4.7M    maillog-20170514
1.1G    munin
0       nscd.log
40K     quota_enable.log
172K    rkhunter.log
72K     rkhunter.log.old
27M     sa
8.0K    secure
4.0K    secure-20170423
4.0K    secure-20170430
4.0K    secure-20170507
4.0K    secure-20170514
0       spooler
0       spooler-20170423
0       spooler-20170430
0       spooler-20170507
0       spooler-20170514
0       tallylog
124K    wtmp
4.0K    xferlog.offset
4.0K    xferlog.offsetftpsep
16K     yum.log
36K     yum.log-20160101
16K     yum.log-20170101
1.2G    total
Code:
cd /usr/local/apache/logs && du -sch *
95M     access_log
136M    archive
202M    error_log
4.0K    httpd.pid
4.0K    modsec_audit
0       modsec_audit.log
0       modsec_debug_log
4.0K    ssl_scache.dir
4.0K    ssl_scache.pag
34M     suexec_log
44K     suphp_log
466M    total
Code:
cd /usr/local/cpanel/logs && du -sch *
45M     access_log
0       api_tokens_log
4.0K    backup_restore_manager_error_log
0       backup_restore_manager_log
188K    build_locale_databases_log
708K    cpbackup
128K    cpbackup_transporter
12K     cpbackup_transporter.log
8.0K    cpdavd_error_log
24K     cpdavd_session_log
2.7M    cphulkd_errors.log
3.7M    cphulkd.log
204K    cpwrapd_log
312K    dnsadmin_log
40K     easy
16M     error_log
0       incoming_http_requests.log
468K    license_log
412K    login_log
4.0K    panic_log
4.0K    php-fpm
844K    queueprocd.log
720K    safeapacherestart_log
252K    session_log
79M     spamd_error_log
188K    stats_log
5.9M    tailwatchd_log
368K    update_analysis
156M    total
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463

Bashy

Well-Known Member
Feb 20, 2011
73
13
58
HI, thanks, but i get this error

Code:
[email protected] [~]# du -sh /
du: cannot access `/proc/13981': No such file or directory
du: cannot access `/proc/19477/task/19477/fd/4': No such file or directory
du: cannot access `/proc/19477/task/19477/fdinfo/4': No such file or directory
du: cannot access `/proc/19477/fd/4': No such file or directory
du: cannot access `/proc/19477/fdinfo/4': No such file or directory
67G     /
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

You can ignore those warning messages, and proceed to further examine the disk usage. EX:

Code:
du -sh /*
Thank you.
 

Bashy

Well-Known Member
Feb 20, 2011
73
13
58
Hello,

You can ignore those warning messages, and proceed to further examine the disk usage. EX:

Code:
du -sh /*
Thank you.
Thanks, heres the output

Code:
[email protected] [~]# du -sh /*
34G     /backup
8.1M    /bin
12M     /boot
336K    /dev
180K    /error_log
34M     /etc
52G     /home
5.1M    /lib
28M     /lib64
16K     /lost+found
4.0K    /media
4.0K    /mnt
40M     /opt
du: cannot access `/proc/26450/task/26450/fd/4': No such file or directory
du: cannot access `/proc/26450/task/26450/fdinfo/4': No such file or directory
du: cannot access `/proc/26450/fd/4': No such file or directory
du: cannot access `/proc/26450/fdinfo/4': No such file or directory
0       /proc
12K     /quota.user
4.0K    /razor-agent.log
35M     /root
27M     /sbin
0       /scripts
4.0K    /selinux
4.0K    /srv
0       /sys
3.1M    /tmp
9.0G    /usr
1.4G    /var
and now this...
Sorry for the inconvenience!
The filesystem mounted at / on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.

EDIT

Looks like its the backups that are taking up the space, i had them at /backups/
so i deleted some of them and it let me back in to cpanel, I thought that having
them there would have just used up what ever space that was free on the drive
evidently not, so i have moved them to /home/backups/ in the hope that that will
suffice.....
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

You may also want to consider storing backups on a remote server, or adding a new drive to the server for backup storage. Storing backups on the /home partition is discouraged and can prevent quotas from working properly.

Thank you.
 

Bashy

Well-Known Member
Feb 20, 2011
73
13
58
Hi, sorry for the late reply..

It looks like i can only have it set to a remote server as a secondary backup place only not as a primary
Adding a new disk is not an option :(

Oh, wait, i have just had another look, please let me know if i go wrong here?

1). If i set backup DIR to /home/backup/
2). Backup transfer to another server
3). Have Retain backups in the default backup directory.

Would that still mess with the quotas? or do i need to put the backup back to /backup and have the backups
removed after transfer? thus saving on that partition space?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
It looks like i can only have it set to a remote server as a secondary backup place only not as a primary
Adding a new disk is not an option
You can uncheck "Retain backups in the default backup directory." and the backups will only remain stored on the remote destination.

Oh, wait, i have just had another look, please let me know if i go wrong here?

1). If i set backup DIR to /home/backup/
2). Backup transfer to another server
3). Have Retain backups in the default backup directory.

Would that still mess with the quotas? or do i need to put the backup back to /backup and have the backups
removed after transfer? thus saving on that partition space?
I recommend choosing the local directory with the most disk space, and then disabling the "Retain backups in the default backup directory." option. This will help ensure the local backups are successfully generated before the archives are moved to the remote destination. Once the transfer to the remote destination completes, the backups are then removed from the local directory (e.g. /backup).

Thank you.