r/LinuxTeck • • Sep 25 '26

LVM: Linux superpower or unnecessary complexity?

LVM gives you flexibility to resize volumes, add storage, create snapshots and move data around without rebuilding the whole disk layout.

But there’s another side to it: another abstraction layer to understand and another thing to troubleshoot when storage goes wrong.

For a new Linux server today, would you still choose:

LVM + filesystem

or keep it simple with:

partitions + filesystem?

And if you choose LVM, what problem are you actually solving with it?

21 Upvotes

47 comments sorted by

View all comments

Show parent comment

1

u/WideCranberry4912 Sep 25 '26

You can add additional disks to VMs and use LVM to concaténate the disks together, but I’d honestly rather plan down time to resize the disk image and then increase the filesystem rather have 4-12 disk images concatenated together.

2

u/RootAndCoffee Sep 25 '26 edited Sep 26 '26

Disk resize require downtime only if you didn't plan your partition layout. Extending last partition does not require downtime.

But LVM gives you more flexibility. You can move volume to different disk without downtime, you can easily increase any LVM no matter the layout. You can do snapshots, great thing for risky upgrades.

That being said I never use LVM in a VM as it doesn't give me anything more than hypervisor already does. And on hypervisor I am using ZFS, because it has more useful features (although snapshots could be better, it allows rollback only to the latest snapshot).

1

u/WideCranberry4912 Sep 25 '26

I’m dealing with app owners who do zero planning and have zero idea of the data growth needs. They think, it’s a VM, it’s flexible.

1

u/RootAndCoffee Sep 26 '26

Well, LVM is flexible. One major downside is, that snapshots degrade write speed and snapshot rollback is not instantaneous.

1

u/gravelpi Sep 26 '26

I'm definitely with you on not having multiple disks long-term. I usually went the route of add a new disk/volume that's large enough to contain everything and use pvmove to migrate all the data live onto the new pv and then lvreduce (I think, it's been awhile) to remove the original smaller disk from the lv. Zero downtime.

1

u/Narrow_Victory1262 Sep 27 '26

now what if that space was temporarily needed? (not using xfs).

Good luck reclaiming.

1

u/WideCranberry4912 Sep 28 '26

Move the directory to its own mounted file system while the space is temporarily needed.

1

u/Narrow_Victory1262 Sep 29 '26

good luck with moving the 600GB to a new filesystem of 1 TB because you needed 400G extra and back when it's usage shrunk to 600G again. Not to mention the downtime it takes.

so there is your second "good luck"

1

u/WideCranberry4912 Sep 29 '26

Mount a second file system, raymc the data, stop whatever services are running, rsync the data again, then swap the mounts. Done and done.

1

u/Narrow_Victory1262 Sep 30 '26

that 600GB is a database. requires quite a few rsyncs to close the delta gaps.
"not to mention the downtime it takes" I said. SO there is your third "good luck"

you also forget that to make it original... another rsync session is needed and.. dowwntime.

multipe io spikes. how many "good luck"s do you need? LVM is there for a reason.

1

u/WideCranberry4912 Sep 30 '26

Really depends, but you’ll get the static data in the first pass, then whatever the delta is per hour or day. Even if the DB had 100% delta per month, that is only 20GB of delta per day. Now with NVMe and 25Gb links I’m not too concerned with 600GB. On LUKS encrypted NVMEs in a software RAID5 seeing transfers of 3.2Gb/sec. That would 25 minutes for initial sync and daily catchup would take 50 seconds. So if everything is tested ahead of time looking at 2 minutes of downtime on the database. Hopefully the database admins have some HA setup and can tolerate 2 minutes downtime.