I have a linux server which runs in a VM. The hypervisor is VMWare.
This setup was done by a former admin:
server:~ # pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 system lvm2 a-- 119,84g 0
server:~ # vgs
VG #PV #LV #SN Attr VSize VFree
system 1 3 0 wz--n- 119,84g 0
server:~ # lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
home system -wi-ao--- 97,84g
root system -wi-ao--- 20,00g
swap system -wi-ao--- 2,00g
I ask myself: Why?
It is great that you can do a lot of interesting things with LVM. But why?
Why not create one blockdevice/partition/filesystem?
Swapping could get done into a file.
One partition/filesystem would give me less block devices. This means the directories in the file system have more space to grow.
If I use one block device with one filesystem it is less likely to run out of disk space.
Example: If the files of "root system" need more than 20GByte, and "home" has space left, then everything is fine.
Here is an simplified ascii art of the LVM setup:
+--------------------+
| |
| Filesystem |
| |
|---------------------
| |
| Logical Volume |
| |
|---------------------
| |
| Volume Group |
| |
----------------------
| |
| Physical Volume |
| |
|---------------------
| |
| Block device |
| |
+--------------------+
Background: This is not a high available system. A reboot at night is always possible.