I frequently read postings on different forums about what the best LUN size is and I thought Iâ€™d write a post about it on how I usually do it.
First of all, there is no ideal LUN size that suites all environments. But I think there is a general calculation you can use to come to the LUN size suited for your environment. And second, there is no technical difference between small or large LUNs. For the read/write performance it doesnâ€™t matter if your VMDK is on a 100Gb LUN or 2TB LUN, itâ€™s the total load on the LUN that matters.
The bases of my rule of thumb is that a LUN should hold no more then 30 VMDKs, more VMDKs could impact performance because of disk queuing. Keeping those 30 VMDKs in mind, you should then check what your average disk size is and please look at it by using your common sense. With that I mean, if you have 100 VMs that use around 15Gb each and 2 VMs with 1,5Tb, please leave those 2 out of your calculation. These exceptions you can handle later on.
Ok, you have determined the average disk size, letâ€™s say 12Gb. Now multiply this by that magic 30 and you see that you would need 360Gb per LUN to accommodate 30 VMDKs. But thatâ€™s not all; we also need some spare room for VM swap space and for snapshots. Normally the VMs I use have 1Gb or 2Gb RAM assigned, which would give a 1-2Gb swap space for the VM. Because most VMs have more than one VMDK, I think its safe to state that 30Gb swap space per LUN is sufficient.
Most tricky part is the spare room you should reserve for snapshots. I try to keep snapshots active as short as possible. A week old snapshot is really long in my opinion. Of course, there can be reasons that you need it, but normal operations would not require running a snapshot for such a long time. So how big should the room for snapshot be? Letâ€™s put it at 15%.
So to summarize and build the formula:
30 x (your average disk size) + 30Gb VM swap + 15% of (30 x your average disk size) = calculated LUN size.
And to put the cherry on top, take your calculated LUN size and round it up to the next â€œhandyâ€ number. For example, 444Gb I would round up to 500Gb, 689Gb I would round up to 750Gb and so.
With this formula I think you can make a basic calculation and get an idea of what COULD suite your environment. Its no hard rule, it something you have to feel comfortable with and maybe after some time you would tweak this to your own experiences.
Would love to hear your thoughts and comments on this!!!