Resize /dev/mapper/centos-root
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
I get
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,
df -hI get
/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/1002I 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,
-
your have to re-size the file system with resize2fs How to Grow an ext2/3/4 File System with resize2fs - Red Hat Customer Portal 0 -
Thanks for you assistance @dalem. While I didn't use your information directly. It did lead me to the solution which was lvextend -L+*insertsizeingigabytes*G -r /dev/mapper/centos-root
Also I recommend usinglsblk
It makes a lot a lot more sense to me thandf -h
Thanks again,0 -
Hello, I'm happy to see you were able to address the issue. Thank you for updating this thread with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments