Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of expanding logical Volume Space by using linux's lvextend Command

Shulou Source: shulou.com Published: 2022-06-02 19:50:36 10月30日 Update

This article mainly introduces the use of linux lvextend command to expand logical volume space method, has a certain reference value, friends can refer to the need. Take a look at it with me.

The lvextend command extends 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, and the entire space expansion process is completely transparent to the application.

Syntax format: lvextend [parameter] [logical volume]

Common parameters:

Reference Example

Add 100 MB of space to logical volumes:

[root@linuxcool ~]# lvextend -L +100M /dev/vg1000/lvol0Extending logical volume lvol0 to 300.00 MB Logical volume lvol0 successfully resized

Extend the size of logical volume 'vg0/lvol10' by 100M on physical volume/dev/sdk3:

[root@linuxcool ~]# lvextend -L +100 /dev/vg01/lvol10 /dev/sdk3

Extend logical volume "vg01/lvol01" to 160MB using physical extents/dev/sda:8-9 and/dev/sdb:8-9:

[root@linuxcool ~]# lvextend -L+160 vg01/lvol01 /dev/sda:8-9 /dev/sdb:8-9 Above is the detailed content of the method of expanding logical volume space using linux lvextend command. Have you learned anything after reading it? If you want to know more, welcome to the industry news!

Tags: Logic space commands methods content parameters size applications physics programs references online applications admirals values functions dynamics sections examples that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft OPPO Reno Shulou Tech Info MySQL