[CentOS] virtualbox, lvextend, etc.

Tue Nov 12 04:34:47 UTC 2013
Wes James <comptekki at gmail.com>

I'm using virtualbox with one of the tests I have for centos 6.4.  I
realized after creating the disk, the default was too small.  I added more
disk space with:

VBoxManage modifyhd /Users/user/VirtualBox\ VMs/centos\ 6.x/centos\ 6.x.vdi
 --resize 25000

I then used this site to help me resize the lvm:

http://community.spiceworks.com/how_to/show/2768-extending-lvm-partition-with-free-space-from-the-same-hdd-or-with-a-new-partition-from-a-new-hdd-on-centos

but when I do:

df -h

I still see only the original 8gig disk (8gig total - 4gig data/4gig swap)).

When I look at pvscan in lvm, it says 23.92GiB is the size of the volume.

Why doesn't df see it correctly?

Thanks,

-wes