TrumanWong

lvextend

Extend logical volume space

Supplementary instructions

lvextend command is used to extend the space size of a logical volume online without interrupting application access to the logical volume. Use the lvextend command to dynamically expand disk space online. The entire space expansion process is completely transparent to the application.

grammar

lvextend(option)(parameter)

Options

-L: Specify the size of the logical volume, the unit is "kKmMgGtT" bytes;
-l: Specify the size of the logical volume (number of LEs).

Parameters

Logical volume: Specify the logical volume to expand space.

Example

Use the lvextend command to add 100M space to the logical volume /dev/vg1000/lvol0. Enter the following command at the command line:

[root@localhost ~]# lvextend -L +100M /dev/vg1000/lvol0 #In order to solve the problem of adding 100M space

The output information is as follows:

Extending logical volume lvol0 to 300.00 MB
Logical volume lvol0 successfully resized