Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Need more space in /usr. Can I remove these directories?

  1. #1
    Registered Member
    Join Date
    Mar 2004
    Posts
    1,037

    Default Need more space in /usr. Can I remove these directories?

    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.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,884
    cPanel/WHM Access Level

    Root Administrator

    Lightbulb

    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:

    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.
    you might want to untick that if you haven't already.

  3. #3
    Registered Member
    Join Date
    Mar 2004
    Posts
    1,037

    Default

    Cool, that got me back down to 80% in /usr

    Thanks for your response!

  4. #4
    Registered Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    229
    cPanel/WHM Access Level

    Root Administrator

    Default

    You can also remove the contens in those 2 folder

    /usr/local/apache/logs/
    /usr/local/apache/domlogs/

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    1

    Default

    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.

  6. #6
    Registered Member
    Join Date
    Mar 2004
    Posts
    1,037

    Default

    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.

  7. #7
    Registered Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    229
    cPanel/WHM Access Level

    Root Administrator

    Default

    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.

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  8. #8
    Registered Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    1,040
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by MikekiM View Post
    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.
    Yep, these files seems to be the source being downloaded every time a cpanel update is performed. I BELIEVE that should be safe to delete files with older date than a year.

    If anybody at staff can confirm this, I could delete about 600 MB of dump

  9. #9
    Registered Member
    Join Date
    May 2009
    Location
    India
    Posts
    8

    Default move domlogs

    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.

  10. #10
    Registered Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    1,040
    cPanel/WHM Access Level

    Root Administrator

    Default

    ok, but what if, as in my personal issue, I don't have multiple partitions and everything is working in the same disk?

  11. #11
    Registered Member
    Join Date
    Mar 2010
    Posts
    5

    Default

    some thing is new to know thanks

  12. #12
    Registered Member
    Join Date
    Aug 2010
    Posts
    80

    Default Re: Need more space in /usr. Can I remove these directories?

    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.

  13. #13
    Registered Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    229
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need more space in /usr. Can I remove these directories?

    Try running

    Code:
    /scripts/fixquotas
    But for your knowledge this will take a lot of time and the HDD will become so slow till this operation is finished.

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  14. #14
    Registered Member
    Join Date
    Aug 2010
    Posts
    80

    Default Re: Need more space in /usr. Can I remove these directories?

    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 command
    Code:
    lsof |grep /usr|awk '{print $1}'|sort|uniq -c
    finally I got it it was the service httpd stop then start

  15. #15
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Need more space in /usr. Can I remove these directories?

    Quote Originally Posted by ModServ View Post
    You can also remove the contens in those 2 folder

    /usr/local/apache/logs/
    /usr/local/apache/domlogs/
    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:

    Code:
    cd /usr/local/apache
    mv domlogs /home/domlogs
    cd /home
    ln -s domlogs /usr/local/apache/domlogs
    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.
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. need space on /usr
    By golden_eyes in forum cPanel & WHM Discussions
    Replies: 12
    Last Post: 04-26-2011, 03:13 PM
  2. Need more space in /usr. Can I remove these directories?
    By jols in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 01-15-2010, 03:37 AM
  3. space /usr need help
    By freshorange in forum New User Questions
    Replies: 0
    Last Post: 01-11-2010, 04:07 AM
  4. remove 777 permissions on all root web directories? How?
    By jols in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 06-26-2007, 04:18 PM
  5. /usr/bin/install: cannot remove `/etc/my.cnf\': Operation no
    By jayglate in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 12-15-2001, 07:09 PM
bargain