1. vmware扩容或添加新硬盘
2. 用gparted或fdisk建立新分区
3.
pvcreate /dev/sda3
vgextend VolGroup00 /dev/sda3
lvextend -L +20G /dev/VolGroup00/LogVol00
e2fsck -f /dev/VolGroup00/LogVol00
resize2fs /dev/VolGroup00/LogVol00
man lvextend里面的example:
"lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size
of that logical volume by 54MB on physical volume /dev/sdk3. This is
only possible if /dev/sdk3 is a member of volume group vg01 and there
are enough free physical extents in it.
"lvextend /dev/vg01/lvol01 /dev/sdk3" tries to extend the size of that
logical volume by the amount of free space on physical volume
/dev/sdk3. This is equivalent to specifying "-l +100%PVS" on the com-
mand line.
"lvextend -L+16M vg01/lvol01 /dev/sda:8-9 /dev/sdb:8-9"
tries to extend a logical volume "vg01/lvol01" by 16MB using physical
extents /dev/sda:8-9 and /dev/sdb:8-9 for allocation of extents.
参考文章:http://hi.baidu.com/kemp86/blog/item/9f906b3cb47b65f7828b13c2.html
阅读(1045) | 评论(0) | 转发(0) |