cpanel on Centos7 VM (Hyperv) - Disk resizing trouble within Centos

General support questions
Post Reply
valllem
Posts: 2
Joined: 2017/05/18 08:48:22
Location: New Zealand

cpanel on Centos7 VM (Hyperv) - Disk resizing trouble within Centos

Post by valllem » 2017/05/18 09:18:32

Evening all.
I have recently setup CPanel on a Centos 7 system within HyperV. The total disk size was approximately 40GB.
This quickly filled up due to cpanel use so i expanded the Hyperv disk to 100GB (May increase to 200 once i make more room)
I have expanded within Centos so that my 'Partition2' (LVM2 PV) now utilizes the full 100GB. The problem however is that the cpanel runs from my '/dev/mapper/cl-root' which is still showing as 40GB.

My question is...
How can i change this to utilize the full 100GB?

Attached is a screen shot of an output of: lsblk;pvs;vgs;lvs;df -h;fdisk -l /dev/sda

Also I know there are errors regarding missing PV but not sure how to resolve.

Thanks in advance.
Attachments
hyperv - single disk of 107GB
hyperv - single disk of 107GB
hyperv1.png (63.96 KiB) Viewed 1246 times
output of centos disk
output of centos disk
fdisk1.png (130.07 KiB) Viewed 1246 times

ancientnoise
Posts: 58
Joined: 2017/02/20 01:36:15

Re: cpanel on Centos7 VM (Hyperv) - Disk resizing trouble within Centos

Post by ancientnoise » 2017/05/24 23:44:41

Did you remember to extend the filesystem after adding the new storage?

xfs_growfs /filesystem

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cpanel on Centos7 VM (Hyperv) - Disk resizing trouble within Centos

Post by TrevorH » 2017/05/25 00:02:48

Why are you missing two PVs from your system?

Did you pvresize /dev/sda2? Did you lvresize the LV that the filesystem in question resides on?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply