Help Center > > Best Practices> EVS Disk Management Using LVM> LVM Overview

LVM Overview

Updated at: Apr 08, 2021 GMT+08:00

To use an Elastic Volume Service (EVS) disk in Linux, partitions need to be created on this disk. If the partition space becomes insufficient, you can handle the insufficiency in either of the following ways:

  • Expand an existing partition (services will be interrupted).
  • Create a new partition (services will not be interrupted).

Both ways are not ideal as either services need to be interrupted or new partitions need to be created. In this case, LVM can perfectly handle the space insufficiency.

Basic Principles of LVM

LVM is short for Logical Volume Manager, which is a mechanism used for managing disk partitions in Linux.

By adding a logical layer between EVS disks and file systems, LVM shields the EVS disk partition layout for file systems, thus improving flexibility in managing EVS disks. Figure 1 shows the LVM architecture.
Figure 1 LVM architecture

The process of managing EVS disks through LVM is as follows:

  1. Create physical volumes for EVS disks.
  2. Create a volume group for the physical volumes.
  3. Create logical volumes in the volume group.
  4. Create file systems on logical volumes.

When EVS disks are managed using LVM, file systems are distributed on multiple EVS disks and can be easily resized as needed. Therefore, file system spaces will no longer be limited by EVS disk capacities.

For example, you can expand the size of a ext4 file system in either of the following methods:

  • Expand the capacity of the logical volume directly if the unallocated space in the volume group is sufficient.
  • Expand the capacity of the volume group and then expand the capacity of the logical volume if the unallocated space in a volume group is insufficient.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel