藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 系統管理


    

藍森林 http://www.lslnet.com 2006年8月18日 15:18


如何LV的空間減小?

我在RHAS3上建立勒LVM

有一個LV 文件繫統格式是ext3

我可以將它的空間加大
但我不知道如何 減小它的空間

請大傢幫忙

謝謝

如何LV的空間減小?

卸載lvm的掛載點,如:
umount /home/lvm_home

將lvm分區lv_home減小2GB
lvextend -L-2G /dev/lvm_vg/lv_home

resize(我是用的reiserfs,不記得ext3的命令了)
resize_reiserfs /dev/lvm_vg/lv_home

重新掛載到原來的掛載點(還是以reiserfs為例)
mount -t reiserfs /dev/lvm_vg/lv_home /home

如何LV的空間減小?

-->
根據lvextend的man,lvextend是不能夠減少lv的大小的(聲明:我沒實踐過):
-L, --size [+]LogicalVolumeSize[kKmMgGtT]
              Extend or set the logical volume  size  in  units  in  units  of
              megabytes.  A size suffix of M for megabytes, G for gigabytes or
              T for terabytes is optional.  With the + sign the value is added
              to  the  actual  size  of the logical volume and without it, the
              value is taken as an absolute one.

如何LV的空間減小?

man e2fsadm

如何LV的空間減小?

lvreduce

如何LV的空間減小?

是使用e2fsadm這個指令的

如何LV的空間減小?



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com