Wednesday, 24 December 2014

Office Arguments - Maximum VMDK size is NOT 2TB-512bytes

...if you want to use snapshots

Pop Quiz
Q: What's the maximum size VMDK you should create in vSphere 5.1 or earlier?

A: Most people that have studied for VCP will know the maximum VMDK size is 2TB minus 512 bytes. If you create a disk in the GUI, it allows you to choose 2TB, but it's smart enough to minus 512 bytes.

So technically that's the maximum VMDK size, but you should NOT create it that big.


If you plan to take snapshots, there's additional overhead you need to take into account. For a 2TB VMDK, there's up to 16GB of overhead for the snapshot. So in reality, the VMDK needs to be 2032GB to allow for that overhead.

If you have created a 2TB VMDK and attempt to take snapshots, you may get the error:  
File is larger than maximum file size supported (1012384)
File <unspecified filename> is larger than the maximum size supported by the datastore '<unspecified datastore>.

As mentioned in KB 1012384, depending on the block size of the VMFS volume:

Maximum VMDK sizeMaximum OverheadMaximum size less overhead
256GB - 512B~ 2GB254GB
512GB - 512B~ 4GB508GB
1TB - 512B~ 8GB1016GB
2TB - 512B~ 16GB2032GB

If you plan to take snapshots, the maximum VMDK size is 2032GB. Or better still, embrace Decimal, and round it off to 2000GB.

The younger generation will know a TB as 1000GB ( Older folks will still be used to a TB being 1024GB, now known as a Tebibyte TiB ( Hey VMware, please update all your doco from TB to TiB ;-)

No comments:

Post a Comment