Me, The programmer
Just another WordPress.com site
Resizing a Root LVM Fedora Partition Running on Virtualbox
Posted by on June 25, 2011
Alright, I just went through *A LOT* of trouble to resize a Fedora partition running on a VirtualBox. This is what I did.
- My previous VirtualBox had 8gb of space. I created a new one with 30gb
- VBoxManage.exe clonehd OldHD.vdi NewHD.vdi –existing (this will copy your current filesystem over to the new virtual hard drive)
- On the previous step the file system was copied over, but the extra space will be left as unallocated, so now we need to expand your root partition. In order to do this, you will need to usa a Fedora Live CD.
- After the CD has booted, open a terminal and elevate it with “su”.
- Run system-config-lvm
- Find the uninitialized entities and initialize them
- Close system-config-lvm
- On the terminal, run lvresize -L +XXXGB /dev/PARTITION_PATH. This will extend your partition.
- Your partition has been extended now, but your filesystem still doesn’t know about it. Now run resize2fs -p /dev/PARTITION_PATH and voilá.
Hope this helps.
Advertisement
Pingback: Logical Volume Management (LVM2) and VirtualBox « Chronofile
Try this url, helped me a lot
http://www.redhatlinux.info/2010/11/lvm-logical-volume-manager.html