Chinaunix首页 | 论坛 | 博客
  • 博客访问: 65499
  • 博文数量: 20
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 185
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 11:15
文章分类
文章存档

2009年(4)

2008年(16)

我的朋友

分类: LINUX

2009-01-13 18:45:00

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) |
给主人留下些什么吧!~~