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.

Resize /dev/mapper/centos-root

Discussion in 'General Discussion' started by TheDjinn, May 2, 2016.

  1. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I recently upgrade my VPS server running CloudLinux 7 to 40G from 20G. I booted up GParted and extended the /dev/sda2 partition to 40G.

    However when I run

    Code:
    df -h
    I get

    Code:
    /dev/mapper/centos-root   18G   13G  4.7G  74% /
    devtmpfs                 989M     0  989M   0% /dev
    tmpfs                    999M     0  999M   0% /dev/shm
    tmpfs                    999M  8.6M  990M   1% /run
    tmpfs                    999M     0  999M   0% /sys/fs/cgroup
    /dev/sda1                497M  314M  183M  64% /boot
    tmpfs                    200M     0  200M   0% /run/user/1002
    I don't even see the extra space in here at all.

    I'm assuming I have to allocate the extra 20G to the root partition, but I'm unfamiliar with how to do that beyond what I've already done.

    Any help would be appreciated.

    Thanks,
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  3. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thanks for you assistance @dalem. While I didn't use your information directly. It did lead me to the solution which was

    Code:
    lvextend -L+*insertsizeingigabytes*G -r /dev/mapper/centos-root
    Also I recommend using
    Code:
    lsblk
    It makes a lot a lot more sense to me than
    Code:
    df -h
    Thanks again,
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page