扩容
[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 逻辑卷扩容所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)