首页 > 系统服务 > 详细

linux 逻辑卷扩容

时间:2020-08-09 23:37:33      阅读:126      评论:0      收藏:0      [点我收藏+]

扩容

[root@localhost lohr]# lvextend -L +2G /dev/thomas/thomas-lv 
  Size of logical volume thomas/thomas-lv changed from 1.00 GiB (256 extents) to 3.00 GiB (768 extents).
  Logical volume thomas/thomas-lv successfully resized.

ext4文件系统生效

[root@localhost lohr]# resize2fs /dev/thomas/thomas-lv 
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/thomas/thomas-lv is mounted on /mnt/thomas-lv; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/thomas/thomas-lv is now 786432 blocks long.

xfs文件系统生效

[root@localhost lohr]# xfs_growfs /dev/thomas/thomas-lv 

扩容成功

技术分享图片

linux 逻辑卷扩容

原文:https://www.cnblogs.com/zhangxuechao/p/13466809.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!