linux 逻辑卷扩容

linux 逻辑卷扩容,第1张

概述扩容 [root@localhost lohr]# lvextend -L ʲG /dev/thomas/thomas-lv Size of logical volume thomas/thomas

扩容

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

ext4文件系统生效

[root@localhost lohr]# resize2fs /dev/thomas/thomas-lv resize2fs @H_419_7@1.42@H_419_7@.9@H_419_7@ (28@H_419_7@-Dec-2013@H_419_7@)filesystem at @H_419_7@/dev/thomas/thomas-lv is mounted on /mnt/thomas-lv; on-line resizing requiredold_desc_blocks @H_419_7@= 1@H_419_7@,new_desc_blocks = 1@H_419_7@The filesystem on @H_419_7@/dev/thomas/thomas-lv is Now 786432@H_419_7@ blocks long@H_419_7@.

xfs文件系统生效

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

扩容成功

总结

以上是内存溢出为你收集整理的linux 逻辑卷扩容全部内容,希望文章能够帮你解决linux 逻辑卷扩容所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1016685.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存