Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    31

    Default resize partition /usr

    Hi,

    I have this partitions for my server:

    /dev/sda6 494M 8.1M 461M 2% /tmp
    /dev/sda1 1.5G 305M 1.1G 22% /
    /dev/sda3 9.7G 3.7G 5.5G 41% /usr
    /dev/sda7 118G 553M 112G 1% /home
    /dev/sda2 16G 764M 14G 6% /var

    WHM install new account in /usr partition, but i have partition /home with 118 GByte of space available, is possible resize the /usr partition?? or is possible install new account in partition /home ??

    thanks
    Alessio

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    Once you have assigned the partitions you cannot change them. There are some hack work arounds to change partition sizes, but you will end up with an unstable machine. Your partition scheme isn't too bad, should work for a normal server.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    31

    Default

    I understande, but how I can use the partition /home?? (are 118 GByte unused).

    Alex

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The default consiguration should create accounts in /home anyway. IF they're not, check your settings in WHM > Edit Setup. If they're OK, you may have something unsual in your mount points - it would be helpful in that case if you could post your /etc/fstab file.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    Your in trouble, this is a very complex process I gave been researching for months. You need to remove the mount on a larger partition then use a special program to to split the partition and remount the partition. You will have to back up the data in the mount your remove and the one your are moving.

    Basically you need to reformat or set up a cron to clean out the directory every night.

    Also /tmp should be 1 gig minimum for next time.

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    31

    Default

    ok, Default Home Directory is setup "/home".

    files for accounts are located here, but the logs file for this accounts it is located in /usr, I have an account that produce every month about 5/6 GByte file log and it fills up the partition /usr.

    the logs file is located in /etc/httpd/domlogs, real path -> /usr/local/apache/domlogs

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can move domlogs to /home and symlink the directory if you want, with something like:

    mv /usr/local/apache/domlogs /home/
    ln -s /home/domlogs /usr/local/apache
    /scripts/restartsrv_httpd
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Full /usr partition
    By Fbarajas in forum Optimization
    Replies: 20
    Last Post: 10-05-2011, 12:10 PM
  2. /usr partition full
    By danielco in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-26-2008, 09:17 AM
  3. My /usr partition is full - what do i do?
    By Dragons Master in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-24-2005, 10:46 PM
  4. Usr Partition Full.. anyway to resize?
    By hosterplus in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-12-2005, 12:16 PM
  5. /usr partition nearly full how do i clear it
    By 21Century in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-26-2004, 04:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube