扩容
[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
扩容成功
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。