标签:
目标:将VolGroup-lv_home缩小到100G,并将剩余的空间添加给VolGroup-lv_root
===========================================================================
解决过程:
# df -h //查看分区
# umount /home //取消挂载
# e2fsck -f /dev/mapper/VolGroup-lv_home //分区检测
# resize2fs -p /dev/mapper/VolGroup-lv_home 100G //将lv_home虚拟分区设为100G
# mount /home //挂载home
# df -h //查看分区
# lvreduce -L 100G /dev/mapper/VolGroup-lv_home //释放空间
# vgdisplay //查看可用空间大小
# lvextend -L +311.47G /dev/mapper/VolGroup-lv_root //扩展lv_root虚拟分区
# resize2fs -p /dev/mapper/VolGroup-lv_root //lv_root重设分区大小
LVM(逻辑磁盘管理),灵活性很高.
标签:
原文地址:http://www.cnblogs.com/DaBing0806/p/4629620.html