Introducing LVM in Linux
Some of you may have already heard of LVM. For those who do not know what it is, we will explain it briefly in this section. Imagine a situation where your disks run out of space. You can always move it to a larger disk and then replace the smaller one, but this implies system restarts and unwanted downtimes. As a solution, you can consider LVM, which offers more flexibility and efficiency. By using LVM, you can add more physical disks to your existing volume groups while they’re still in use. This still offers the possibility to move data to a new hard drive but with no downtime – everything is done while filesystems are online.
The utilities used in Linux for LVM management are called pvcreate
, vgcreate
, vgdisplay
, lvcreate
, lvextend
, and lvdisplay
. Let’s learn how to use them.
As we don’t have a system with LVM set up just yet, we will show you the steps that are necessary to create new LVM volumes by using another system...