December 5, 2008 - Sven Huisman

VMware ESX 3.5 and thinprovisioning

Thinprovisioning will be a new feature of the next release of ESX. However, it is already possible to use thinprovisioning from the service console with the vmkfstools command. Here are some tips (thanks to Richard Garsthagen):

Create a 15GB thinprovisioned disk:

vmkfstools -c 15G -d thin /vmfs/volumes/vmfs_volume/VM_name/thin_disk.vmdk

If you want to convert a thick disk, you can create a copy from it as thin disk. After that, you will need to remove the old disk from the VM and add the new converted copy.

Copy an existing virtual disk to thin provisioned disk:

vmkfstools -i /vmfs/volumes/vmfs_volume/VM_name/large_disk.vmdk -d thin /vmfs/volumes/vmfs_volume/VM_name/new_thin_disk.vmdk

I have tried this with a template-VM, and it works. However, when I take a look at the filesize from the service console I don’t see the actual size of the file:

When I browse the datastore, I can see the real size of the disks:

This 15GB disk is thinprovisioned only 3 GB. When I tried to move the template to another VMFS-volume with only 13GB space left, I got the following error:

Apparently, when you move a VM with a thinprovisioned disk from vCenter server, it converts to a thick-disk. This is because thinprovisioned disks is not integrated with vCenter server yet.

Also, when you deploy from a template with a thinprovisioned disk, the new VM will get a thick-disk.

Be very careful with using thinprovisioned disks. This can cause your VMFS-volume to get out of space, it’s like running a VM with a snapshot on. In the next version of ESX, there will be an alerting mechanism available that will alert the administrator when you run out of diskspace because of growing thinprovisioned disks. I don’t know if the use of thinprovisioned disk in ESX 3.5 is supported or experimental by VMware.

Virtual Infrastructure ESX / ESX 4.0 / Service console / thinprovisioned disk / thinprovisioning / VMware /

Comments