Suppose the partition needed to be extended is under LVM
1. Use 'vmware-vdiskmanager.exe' command to extend size of disk file:
vmware-vdiskmanager.exe -x 1024Mb "D:\Virtual Machines\Other Linux 2.6.x kernel\Other Linux 2.6.x kernel.vmdk"
2. Use 'fdisk' to create a new partition:
fdisk /dev/hda
The name of new partition is /dev/hda3
3. use 'partprobe' to make the new partition table be effective
partprobe /dev/hda
check it:
cat /proc/partitions
3. Use 'pvcreate' to create physical volume
pvcreate /dev/hda3
4. Run 'vgextend /dev/VolGroup00 /dev/hda3' to extend volume group
5. Run 'vgdisplay' to get how many free PPs left
6. Run 'lvextend -l +n /dev/VolGroup00/LogVol00' to extend lv
7. Run 'resize2fs -p /dev/VolGroup00/LogVol00' to enable the extend.
阅读(818) | 评论(0) | 转发(0) |