Files
tldr/pages.zh/linux/lvextend.md

17 lines
427 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# lvextend
> 增加逻辑卷的大小。
> 另见:`lvm`。
> 更多信息:<https://manned.org/lvextend.8>。
- 将卷的大小增加到 120 GB
`lvextend --size {{120G}} {{logical_volume}}`
- 将卷的大小增加 40 GB并且更新底层文件系统
`lvextend --size +{{40G}} -r {{logical_volume}}`
- 将卷的大小增加到物理卷可用空间的 100%
`lvextend --size +{{100}}%FREE {{logical_volume}}`