Can I safely remove these directories?
/usr/local/apache.backup_archive
/usr/local/apache.backup
/usr/local/cpanel-rollback
It's probably a goofy question, but I just want to make sure. Our /usr dir is at 90%.
Thanks much.
Can I safely remove these directories?
/usr/local/apache.backup_archive
/usr/local/apache.backup
/usr/local/cpanel-rollback
It's probably a goofy question, but I just want to make sure. Our /usr dir is at 90%.
Thanks much.
As long as you're sure your Apache is working as expected, yes. The third one on your list is created from the option on the Tweak Settings page:
you might want to untick that if you haven't already.Enable cPanel Software RollBack. This feature turns on a build archiving and restoration facility, allowing the server administrator to "roll back" their cPanel installation to previous build. All files are stored on the server.
Cool, that got me back down to 80% in /usr
Thanks for your response!
You can also remove the contens in those 2 folder
/usr/local/apache/logs/
/usr/local/apache/domlogs/
I have a bunch of files on /usr/local/cpanel/src/3rdparty/gpl
Is it ok to delete these? They appear to be backups or something.
I would like to know this as well. I'll bet the .tar.gz files in this directory can be safely removed, but I would like to get confirmation of this before doing so.
As of my experience and knowledge, It's safe to remove it as the folder name is /src/ then it's sources for the files, But I don't know if those files are needed sometime from cPanel.
Move the domlogs folder from /usr/local/apache/domlogs to /home and create a symbolic link , That should provide you more space on /usr.
24x7servermanagement.com
Professional Server Management Services
Server Management, Server Security, Server Monitoring.
ok, but what if, as in my personal issue, I don't have multiple partitions and everything is working in the same disk?
some thing is new to know thanks
I deleted a directory its size 1.6G after that I ran the following commands:
root@web [/usr]# du -sh
6.7G .
root@web [/usr]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 7.8G 1006M 6.4G 14% /
/dev/sdb1 903G 554G 302G 65% /backup
/dev/sda8 823G 33G 749G 5% /home
/dev/sda3 9.7G 8.5G 738M 93% /usr
/dev/sda2 49G 3.8G 43G 9% /var
/dev/sda1 99M 24M 71M 25% /boot
/dev/sda5 9.7G 161M 9.1G 2% /tmp
tmpfs 2.0G 0 2.0G 0% /dev/shm
it seems there is wrong with the calculation size.
Try running
But for your knowledge this will take a lot of time and the HDD will become so slow till this operation is finished.Code:/scripts/fixquotas
to avoid this slow till the operation is finished, so to fix this just reboot the server. But because I really wanted to narrow it down and just restart a service or two find out whats running in that partition I ran this commandfinally I got itCode:lsof |grep /usr|awk '{print $1}'|sort|uniq -cit was the service httpd stop then start
I would not suggest performing this action for anyone who reads the above post. If you delete the log files, then you won't have that logging data, which is used for stats purposes as well as error logs (the /usr/local/apache/logs/error_log has the Apache error logs).
It is definitely possible to move the domlogs to /home and symlink them, but I would not suggest removing these files. Many customers and sites want their statistical data, which will be lost by removing the domlogs. Not to mention, if you have a daily stats run, the domlog files will simply reform right after then as the logging acquires new data to log to the files.
In order to move the domlogs, you could handle it this way:
By moving the directory, you are preserving the ownership permissions, then you are symlinking the moved domlogs in /home back to the prior location so that the same log processing can occur.Code:cd /usr/local/apache mv domlogs /home/domlogs cd /home ln -s domlogs /usr/local/apache/domlogs
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support
Submit a ticket | Check an existing ticket