I've been using LVMs on some of my Linux servers for years without fully "getting" them. Doing a lot of things by rote. As I setup a new RAID though, I realize I don't have to be so rigid.
I inherited a mission critical server with five independent disks
Code:
/dev/sdb1 /usr1
/dev/sdc1 /usr2
/dev/sdd1 /usr3
/dev/sde1 /usr4
/dev/sdf1 /usr5
I've bought an external RAID5 box that I plan to migrate the data to and was planning on this layout
Code:
Method 1
VG LogVol
/dev/sdb1 /usr1 -> usr1 disk1
/dev/sdc1 /usr2 -> usr2 disk1
/dev/sdd1 /usr3 -> usr3 disk1
/dev/sde1 /usr4 -> usr4 disk1
/dev/sdf1 /usr5 -> usr5 disk1
mainly because the 1 to 1 correspondence is easy for me to understand, and what I'm used to.
But I realize it doesn't have to be that way, and I could have one VG with all the LVMs as parts of it, i.e.
Code:
Method 2
VG LogVol
/dev/sdb1 /usr1 -> array usr1
/dev/sdc1 /usr2 -> array usr2
/dev/sdd1 /usr3 -> array usr3
/dev/sde1 /usr4 -> array usr4
/dev/sdf1 /usr5 -> array usr5
MY QUESTION IS: is there any advantage to one way over the other?
Would using one VG with multiple LVs be kind of like "putting all my eggs in one basket"?
Do more VGs and LVs introduce unwanted overhead into the LV Mgr that should be frowned upon?
If both methods are equal, I go with the method1. Just more clear to me. But now that I understand the second, I could go that way, if there's a compelling reason.
Any thoughts?
- Van