← 返回命令列表

Linux command

lvextend 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo lvextend -L 120G logical_volume

Example

sudo lvextend -L +40G -r logical_volume

Example

sudo lvextend -l +100%FREE logical_volume

Example

sudo lvextend -l +100%FREE -r logical_volume

说明

lvextend increases the size of a logical volume in LVM. It can extend by an absolute size, relative size, or percentage of available space. The underlying filesystem can be resized automatically.

参数

-L, --size _size_
Specify new absolute size or relative increase (+size)
-l, --extents _extents_
Specify size in extents or percentage (%VG, %FREE, %PVS)
-r, --resizefs
Automatically resize the underlying filesystem
-n, --nofsck
Skip filesystem check before resize
--use-policies
Use thin pool autoextend policies

FAQ

What is the lvextend command used for?

lvextend increases the size of a logical volume in LVM. It can extend by an absolute size, relative size, or percentage of available space. The underlying filesystem can be resized automatically.

How do I run a basic lvextend example?

Run `sudo lvextend -L 120G logical_volume` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -L, --size _size_ do in lvextend?

Specify new absolute size or relative increase (+size)