I have installed CentOS on Windows VirtualBox host. I had initially allocated 50GB but I ran out of space so I extended the vdi to 100 GB and then used a GParted live CD to extend the lmv2 pv partition from 50 GB to 100 GB. When rebooting to CentOS it remained 50 GB. So I reshrinked the partition. Anyway it looks like this after reverting the change.

enter image description here

Since after the initial extension of the partition the vdi on the VirtualBox settings was still looking like 50 GB as depicted here

enter image description here

I really don't know whether this is a Linux or VirtualBox question. Any insights?


To add the additional space, you need to resize 5 things:

  1. The disk (VDI)
  2. The partition
  3. The physical volume
  4. The logical volume
  5. The filesystem

What you can to is...

  1. Resize the VDI and partition, like you did before.
  2. Resize the physical volume with the command: pvresize /dev/sda2
  3. Resize the logical volume and filesystem in one go with the command: lvresize -L +50G /dev/YOUR_VOLUME_GROUP_NAME/vg_centos6

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.