The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Freeing up space in usr partition

Discussion in 'General Discussion' started by Legin76, Sep 24, 2014.

  1. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Hi

    I'm running out of space in my /usr directory once again. I've done all the usual things to make space and am running out of options. Often it seems that updates use up a lot of the space even though they don't necessarily need to be using space on /usr for this. I'm wondering if its safe to move /usr/local/cpanel/src to a different location (perhaps in /home) and to use a symbolic link. It's using up nearly 600mb.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    What's the overall capacity of your /usr partition? I don't suggest moving anything out of the /usr/local directory. Instead, you may find that reinstalling the OS and restoring the accounts from backup is the solution going forward. Here is the recommended partition setup:

    Recommended partitions

    Thank you.
     
  3. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    The partition is 8gb which was the recommended minimum size until recently.

    I've moved all the logs etc, elsewhere and removed / relocated some other recommended files but the recent updates appear to have used a lot more space than previously.

    Ideally I don't want to reinstall as it will be time consuming but also means that 85 or so sites will be offline while it's being done.

    I have wondered about re-portioning as the home directory has 163gb free in it, however this appears to not be recommended. I'm pretty sure it would be far less downtime if all goes well. Has anyone that has successfully re-partitioned with cpanel installed. If so what's the process for this? I could request its done in the data centre straight after the daily backups complete.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest consulting with your data center or a qualified system administrator if you prefer to repartition the drive. It's not generally recommended, and you may even want to consider setting up a new server, transferring the accounts over to it, and then shutting down the existing server. This would reduce the downtime for your websites.

    Thank you.
     
Loading...

Share This Page