There's more...
When we created the logical volume, we simply specified that the new device should use 50% of the available space, but we could have also suggested a specific size in absolute values (for example, 1G).
You might be asking why you would use LVM, if we effectively got to the same position we were in when we simply placed a filesystem atop a disk partition. The answer is: flexibility.
In LVM-land, you can grow volume groups by adding more physical disks to them, you can move data from one physical disk to another (in a running system), and you can even shift all data off a drive, before removing that drive in a hotplug (or hot unplug) fashion. This relies on your filesystem supporting such changes, but modern ones will (allowing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access