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.

Increase /home partition

Discussion in 'Workarounds and Optimization' started by billwide, Jul 26, 2012.

  1. billwide

    billwide Registered

    Joined:
    Jun 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I check my server log and I see this informations:

    Current Disk Usage
    Filesystem Size Used Avail Use% Mounted on
    /dev/md127p1 40G 545M 37G 2% /
    tmpfs 12G 0 12G 0% /dev/shm
    /dev/mapper/vg01-lv_home 16G 13G 2.6G 84% /home
    /dev/mapper/vg01-lv_usr 16G 4.9G 11G 33% /usr
    /dev/mapper/vg01-lv_var 16G 2.6G 13G 18% /var
    /usr/tmpDSK 485M 12M 448M 3% /tmp


    How SSH command may I use to change /home partition from 16G to 50G? :(

    Thanks for any help!

    Willian
     
  2. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    On The Road
    cPanel Access Level:
    Root Administrator
  3. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    You can always add a second drive as /home2 :)

    Thanks!
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Adding a second drive as Eric suggests would be the easiest way to do this without worrying about potential file system corruption.

    If you do add home2 as a second drive, please ensure you have the following in WHM > Basic cPanel & WHM Setup area:



    If this is set to home for that setting, then adding home2 or any other partition with home in the name will ensure that new accounts will be created in that partition if it has more space than /home itself does.

    Once you have the new partition mounted, you can even move some accounts to it using WHM > Rearrange an Account area.

    Thanks!
     
Loading...

Share This Page