上次的文章,是在虚拟机里完成的,可能没有说服力,现在我有一个分区/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好多了吧
阅读(1124) | 评论(0) | 转发(0) |