Chinaunix首页 | 论坛 | 博客
  • 博客访问: 335684
  • 博文数量: 104
  • 博客积分: 2815
  • 博客等级: 少校
  • 技术积分: 595
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 16:32
文章分类

全部博文(104)

文章存档

2013年(1)

2012年(2)

2011年(21)

2010年(80)

我的朋友

分类:

2011-03-17 17:18:15

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