码迷,mamicode.com
首页 > 其他好文 > 详细

VG、LV、rezise2fs、lvresize、fuer使用说明

时间:2016-01-18 12:08:34      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

南沙节点改变LV大小,参考鸟哥第 570页

1、# resize2fs /dev/mapper/vg_niotsvr3-lv_home 150G

resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_niotsvr3-lv_home is mounted on /home; on-line resizing required
On-line shrinking from 197822464 to 39321600 not supported.

2、# umount /home
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

3、# fuser -m /home
/home: 3057c 3410c 4540c 14641c 14643c 14644c 14646c 25225c 25248c 25253c 25254c 25505c 25519c 25548c 25551c 25552c

4、# e2fsck -f /dev/mapper/vg_niotsvr3-lv_home

5、# resize2fs /dev/mapper/vg_niotsvr3-lv_home 150G

6、# mount /dev/mapper/vg_niotsvr3-lv_home /home

7、# lvdisplay vgdisplay

8、# lvresize -L 200G /dev/mapper/vg_niotsvr3-lv_root

9、# resize2fs /dev/mapper/vg_niotsvr3-lv_root

10、# df /

VG、LV、rezise2fs、lvresize、fuer使用说明

标签:

原文地址:http://www.cnblogs.com/fatt/p/5138711.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!