Chinaunix首页 | 论坛 | 博客
  • 博客访问: 423365
  • 博文数量: 148
  • 博客积分: 3191
  • 博客等级: 中校
  • 技术积分: 1232
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-11 15:25
文章分类

全部博文(148)

文章存档

2011年(148)

我的朋友

分类: LINUX

2011-08-12 10:15:11


上次的文章,是在虚拟机里完成的,可能没有说服力,现在我有一个分区/vm的空间越来越紧张了,虽然分配了50G,但承载不了越来越多的虚拟机了。(可能是无聊的,我测试了10g和11g的rac,还有Linux的一些发行版本)
现在datavg还有50G+的剩余空间,现在把/vm增加20G,这样就扩大为70G了,以下是扩展的日志输出
:~# lvextend -L +20G /dev/datavg/lvvm
Extending logical volume lvvm to 70.00 GB
Logical volume lvvm successfully resized
[code=bash]
:~# lvresize -L 70G /dev/datavg/lvvm
New size (17920 extents) matches existing size (17920 extents)
Run `lvresize --help' for more information.
[/code]
:~#  e2fsck /dev/datavg/lvvm
e2fsck 1.41.3 ( 12-Oct-2008 )
/dev/datavg/lvvm is mounted.
WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/datavg/lvvm: recovering journal
/dev/datavg/lvvm has been mounted 66 times without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/datavg/lvvm: 122/3276800 files (28.7% non-contiguous), 11299314/13107200 blocks
[code=bash]
:~# resize2fs /dev/datavg/lvvm
resize2fs 1.41.3 ( 12-Oct-2008 )
Filesystem at /dev/datavg/lvvm is mounted on /vm; on-line resizing required
old desc_blocks = 4, new_desc_blocks = 5
Performing an on-line resize of /dev/datavg/lvvm to 18350080 (4k) blocks.
The filesystem on /dev/datavg/lvvm is now 18350080 blocks long.
[/code]
比windows下的Pqmagic好多了吧 
 
阅读(1130) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~