Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Resize /dev/mapper/centos-root

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

  1. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    24
    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,696
    Likes Received:
    71
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. TheDjinn

    TheDjinn Member

    Joined:
    Dec 9, 2014
    Messages:
    24
    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:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to address the issue. Thank you for updating this thread with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice