server has a 30GB drive. I have root access to the server. (CentOS7.9 virtuozzo, cPanel v98.0.8)
As it stands right now, total disk usage is 9.21GB, 2.4 of that is used by /home. Before this, it was nearly 16GB.
I deleted journal logs older than today, which freed up the additional space.
Current high usages are:
/backup 633MB (expected)
/home 2.4GB (expected)
/opt 519MB (guessing this is normal)
/usr 4.3GB
/usr/cpanel 2.4GB (largest in /usr)
/var/log 361MB (was 2.4GB)
1. How much disk space should be used, on average, for /usr (or /usr/cpanel if the rest seems normal)?
2. Is there an automatic method of clearing unmanaged log files, or limiting the amount of space they take up? Seems pretty tedious to login via SSH, and issue several manual commands every couple of months, to do something that could be done automatically. Also, I'm not really even sure which log files are safe to delete, or clear.
3. Is there an automatic way of clearing logs retained by WHM in /usr/local/cpanel/logs/archive/ ? This is easier, since these logs can take several months to rotate, but more often than not, problems get resolved, before the logs are even rotated, and retained logs are never looked at.
If the answer to question 1 is that these sizes seem normal, then let's concentrate on the logs.
As it stands right now, total disk usage is 9.21GB, 2.4 of that is used by /home. Before this, it was nearly 16GB.
I deleted journal logs older than today, which freed up the additional space.
Current high usages are:
/backup 633MB (expected)
/home 2.4GB (expected)
/opt 519MB (guessing this is normal)
/usr 4.3GB
/usr/cpanel 2.4GB (largest in /usr)
/var/log 361MB (was 2.4GB)
1. How much disk space should be used, on average, for /usr (or /usr/cpanel if the rest seems normal)?
2. Is there an automatic method of clearing unmanaged log files, or limiting the amount of space they take up? Seems pretty tedious to login via SSH, and issue several manual commands every couple of months, to do something that could be done automatically. Also, I'm not really even sure which log files are safe to delete, or clear.
3. Is there an automatic way of clearing logs retained by WHM in /usr/local/cpanel/logs/archive/ ? This is easier, since these logs can take several months to rotate, but more often than not, problems get resolved, before the logs are even rotated, and retained logs are never looked at.
If the answer to question 1 is that these sizes seem normal, then let's concentrate on the logs.