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.

Partition Resize

Discussion in 'Workarounds and Optimization' started by KingServer, Feb 9, 2013.

  1. KingServer

    KingServer Registered

    Joined:
    Feb 9, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I want to resize the root partition

    /dev/mapper/vg_server-lv_root
    current size : 50 GB
    resize to 250 GB

    how to resize this partition ?

    Regards :D
     
  2. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    255
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    As long as you have free space on your PV ( run command: pvs to see how much free space you got) you can do the following:
    lvextend -L+200G /dev/mapper/vg_server-lv_root
    resize2fs /dev/mapper/vg_server-lv_root
     
  3. Greenhost

    Greenhost Well-Known Member

    Joined:
    Jan 22, 2013
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    First you must boot via other OS like live OS or rescue.
    Use program like parted/gparted and resize your root partition.:)
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    With LVE (Logical Volume Management), which it appears the original poster is using, you do not need to actually resize the partition. Resizing the partition will cause data loss. Instead, with LVE, add space to the logical volume. The ability to resize logical volumes without repartitioning and reformatting is a key feature of LVE.

    Never make any changes to your partitions or logical volumes without first making full backups of all of your data and testing those backups to make sure they are good.
     
Loading...

Share This Page