免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1117 | 回复: 1
打印 上一主题 下一主题

[系统安装] LVM扩大、缩小的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-09-01 19:01 |只看该作者 |倒序浏览
问题是这样的:
/home分区,我本来分了10G,现在缩小为300M:

  1. [root@system1 ~]# df -hT /home
  2. Filesystem          Type  Size  Used Avail Use% Mounted on
  3. /dev/mapper/g0-home ext4  9.8G   40M  9.2G   1% /home
  4. [root@system1 ~]# lvreduce -L 300M -rf /dev/g0/home
  5. Do you want to unmount "/home"? [Y|n] y
  6. fsck from util-linux 2.23.2
  7. /dev/mapper/g0-home: 157/655360 files (0.0% non-contiguous), 83993/2621440 blocks
  8. resize2fs 1.42.9 (28-Dec-2013)
  9. Resizing the filesystem on /dev/mapper/g0-home to 76800 (4k) blocks.
  10. The filesystem on /dev/mapper/g0-home is now 76800 blocks long.

  11.   Reducing logical volume home to 300.00 MiB
  12.   Logical volume home successfully resized
  13. [color=Red][root@system1 ~]# df -hT /home
  14. Filesystem          Type  Size  Used Avail Use% Mounted on
  15. /dev/mapper/g0-home ext4  166M   12M  134M   8% /home[/color]
复制代码
为什么显示我把/home缩小为300M了,但是通过df -hT /home查看到的大小是166M?
谁能帮我解释下,谢谢~~

论坛徽章:
0
2 [报告]
发表于 2015-10-14 14:40 |只看该作者
没人能解释下么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP