Hi i m using sun virtual box to host virtual machine under my window xp.
Harddisk size : 5 GB
The problem is the root partition of my virtual machine is full during the new kernal compilation.
Now i would like to extend the root partition(Yes its LVM).
Code:
# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 5.06 GB / not usable 1.04 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 162
Free PE 0
Allocated PE 162
PV UUID rRKtYF-X0Jj-gEpF-BIjO-03pI-0FUA-fip66O
out of the total 5.06 gb 4 GB is used for root and rest is used for swap.
Code:
# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID j3a6iW-7vme-otFz-dZCR-jsSf-psXs-j259Tu
LV Write Access read/write
LV Status available
# open 1
LV Size 4.06 GB
Current LE 130
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID mdE1gx-pWFY-Rvie-lN3j-IL5g-ZOcM-xnOuix
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
So i added new Hardisk of size 8 GB.
How can i now extend the root partion?
Any help would be appreciated.
Code:
# fdisk -l
Disk /dev/sda: 5548 MB, 5548015616 bytes
255 heads, 63 sectors/track, 674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 674 5309482+ 8e Linux LVM
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table