Thin, Lazy or Eager Zeroed? Choosing VMware Disk Provisioning

Thin and thick VMware disks trade space efficiency against predictable performance. Learn how each type behaves, when to use it, and how to convert safely.

dns WindowsVPS Team calendar_today schedule6 min read
Thin, Lazy or Eager Zeroed? Choosing VMware Disk Provisioning
tocOn this page 8 sections
  1. The three disk types in plain terms
  2. Does the performance difference still matter?
  3. The real risk of thin: overcommit
  4. Checking and converting disks with PowerCLI
  5. Thin disks don't shrink on their own
  6. The same choice in VMware Workstation
  7. Don't forget backups
  8. Quick summary

Every VMware virtual disk is created with a provisioning type, and that choice is easy to click past. It decides how much datastore space the disk uses on day one, how the disk behaves on its first writes, and how likely your datastore is to fill up without warning. If you manage ESXi hosts from a Windows Server jump box, or run VMware Workstation for test labs, you should know what each option does before you rely on it.

The three disk types in plain terms

Thin provisioned

A thin disk tells the guest it has its full size, such as 200 GB, but uses datastore space only as data is written. A new Windows Server VM may use 20 GB on the datastore while showing a 200 GB C: drive. The VMDK grows as the guest writes to blocks it hasn't touched before.

  • Pros: Very space efficient, and you can create more virtual capacity than the physical datastore holds.
  • Cons: Each first write to a new block needs an allocation step. If the datastore runs out of space, VMs that need to grow can stop until you free space.

Thick provisioned, lazy zeroed

All of the disk's space is reserved on the datastore when you create it, but the blocks are not cleared ahead of time. Each block is zeroed the first time the guest writes to it. Creating the disk is fast and the space is guaranteed, but first writes still carry a small extra cost.

Thick provisioned, eager zeroed

All of the space is reserved and zeroed when the disk is created. Creating it takes longer, especially for large disks on storage that can't offload the zeroing work. After that, there is no first-write penalty. Some features that share a disk between VMs, such as shared-disk Windows failover clusters, usually require this type.

Does the performance difference still matter?

On modern flash storage, and on arrays that can take over zeroing and allocation from the host, the gap between thin and thick in steady use is usually small. The difference shows up mainly when a workload writes a lot of new data quickly, such as a database restore, a large file copy, or a backup landing on a fresh volume. Once a block has been written, all three types perform about the same.

A practical rule of thumb:

  • Thin for general servers, test labs, VDI, and anything where space efficiency matters more than predictable first writes.
  • Lazy zeroed thick when you want guaranteed space without waiting for zeroing at creation time.
  • Eager zeroed thick for write-heavy databases, latency-sensitive transaction logs, and shared-disk clustering.

The real risk of thin: overcommit

Thin provisioning doesn't cause outages on its own. Not watching it does. If ten thin disks of 500 GB each sit on a 2 TB datastore, things work fine until real usage passes 2 TB. Snapshots make this worse because they grow on their own too. To stay safe:

  1. Set datastore usage alarms early, for example a warning at 75% and a critical alert at 85%.
  2. Track how much provisioned space you have compared with real capacity, not just how much is used.
  3. Don't leave old snapshots on thin VMs.
  4. Leave enough free space to absorb a burst of growth.

Checking and converting disks with PowerCLI

From a Windows admin box (a VPS reached over RDP works well), PowerCLI lets you see every disk's type in one pass:

Install-Module VMware.PowerCLI -Scope CurrentUser
Connect-VIServer vcenter.example.local

Get-VM | Get-HardDisk |
  Select-Object Parent, Name, StorageFormat, CapacityGB |
  Sort-Object StorageFormat | Format-Table -AutoSize

To add a new disk with a specific type:

Get-VM SQL01 | New-HardDisk -CapacityGB 100 -StorageFormat EagerZeroedThick

The cleanest way to convert an existing VM's disks is a storage migration with a target format, which works while the VM is running if your licence includes Storage vMotion:

Get-VM APP02 | Move-VM -Datastore (Get-Datastore DS02) -DiskStorageFormat Thin

If you have shell access on the ESXi host, vmkfstools can convert a disk in place while the VM is powered off:

# Inflate a thin disk to eager zeroed thick
vmkfstools -j /vmfs/volumes/DS01/APP02/APP02.vmdk

# Zero out a lazy zeroed thick disk, making it eager zeroed
vmkfstools -k /vmfs/volumes/DS01/APP02/APP02.vmdk

# Clone a disk to a new thin copy
vmkfstools -i APP02.vmdk -d thin APP02-thin.vmdk

Take a backup before any conversion. If you are moving machines between hypervisors rather than between disk types, our guide to moving a live Windows Server into Proxmox covers the disk-format side of that work.

Thin disks don't shrink on their own

When you delete files inside a Windows guest, the thin VMDK doesn't shrink. The blocks still hold data as far as the hypervisor knows. To get the space back, the guest has to tell the storage that the blocks are free. That message is called UNMAP, or TRIM. From an elevated PowerShell prompt inside the guest:

# 0 means delete notifications (TRIM/UNMAP) are enabled
fsutil behavior query DisableDeleteNotify

# Send a retrim for the volume
Optimize-Volume -DriveLetter C -ReTrim -Verbose

Whether that space actually returns to the datastore depends on the VM's hardware version, the disk controller, and the datastore's space reclamation settings. Check your host's configuration before you count on it.

The same choice in VMware Workstation

Workstation offers the same trade-off in different words. "Allocate all disk space now" creates a preallocated disk, and leaving it unchecked creates a growable one. If you run Workstation labs on a Windows VPS for development and testing, growable disks are usually the right choice because they leave more room for other lab VMs. You can convert between the two types with the bundled tool:

# 0 = growable single file, 2 = preallocated single file
& "C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r lab.vmdk -t 0 lab-thin.vmdk

The install path depends on your version and on whether Workstation is 32-bit or 64-bit, so adjust it to match your system. Shut down the VM before you convert.

Don't forget backups

Neither disk type protects your data. A thin disk on a full datastore and a thick disk on a failed array lose data the same way. Choose the provisioning type for space and performance, then back up the VM and the important data inside it on a schedule. On the Windows side, a tool such as Rclone for off-site cloud backups is an easy way to keep a copy away from the host.

Quick summary

  • Thin: uses the least space up front, but you have to watch the datastore.
  • Lazy zeroed thick: guaranteed space and fast to create, with a small first-write cost.
  • Eager zeroed thick: guaranteed space and the most predictable writes, but slow to create.

Run this on your own Windows VPS

Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.

Buy a Windows VPS →

dns

Written by the WindowsVPS Team

We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.

About WindowsVPS Windows VPS guides All articles

Ready to deploy your server?

Windows or Linux VPS — up and running in under 60 seconds.