A co-worker asked me why we should use LVM. With my limited LVM knowledge, I said because it allow you to easily resize/manage volumes!
His idea is this:
We use ESX, and have the ability to increase the size of a disk. Instead of using LVM he proposed this scenario:
- increase /dev/sdb by 100GB in vsphere client
- back in Linux rescan /dev/sdb: echo 1 > /sys/block/sdb/device/rescan
- resize the FS on-line: resize2fs /dev/sdb
Done.
This seems fine. I'm not sure though. What's wrong with this scenario as opposed to using LVM's? What's a better option for allowing disk expansion?
Best Answer
LVM is great for that when you're not in a virtual environment. When the disk can be cloned and grown from outside the environment, that benefit is greatly reduced.