linux逻辑卷扩容[操作系统入门]

编程

扩容

[[email protected] 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文件系统生效

[[email protected] 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文件系统生效

[[email protected] lohr]# xfs_growfs /dev/thomas/thomas-lv 

扩容成功

linux 逻辑卷扩容

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

以上是 linux逻辑卷扩容[操作系统入门] 的全部内容, 来源链接: utcz.com/z/519258.html

回到顶部