Q

Process to convert thick- to thin-provisioned VMDKs

Learn about the disk provisioning options in vSphere and the process for changing a thick-provisioned VMDK to a thin-provisioned one.

With thin provisioning in a VMware environment, what's the process for converting a thick-provisioned VMDK to a

thin-provisioned VMDK?

Thin provisioning is a space reduction technique that optimizes the amount of storage physically assigned to servers, reserving space only for data written to disk. The space savings from using thin provisioning can be considerable and so, where possible, it's advisable to use it or to consider converting from thick to thin.

For vSphere deployments, the VMDK files associated with a virtual machine are assigned the attribute of either thin or thick provisioned at the time of creation. The settings can be viewed by checking the Summary tab for the guest in vCenter Server. The Resources box indicates the amount of provisioned and used storage -- that is, the amount of storage logically assigned and physically consumed, respectively. The setting for an individual VMDK can be validated by editing the guest settings and selecting a hard drive. The Disk Provisioning box indicates the type of VMDK in use and the provisioned size. Options are:

  • Thin Provision: The VMDK will allocate space on-demand in the most efficient format.
  • Thick Provision Lazy Zeroed: The VMDK allocates or reserves all the space required when it is created, but doesn't write zeroes to a block until that block is used, at first write.
  • Thick Provision Eager Zeroed: The VMDK allocates all the space required when it is created and formats all blocks with zeros at creation time.

The VMDK provisioning type can't be changed, although you can convert thick to thin, even while the virtual machine is running. Live conversion requires vCenter Server; a VMDK is moved between data stores and, as part of that process, the format can be changed. Obviously, migration may have a performance impact on busy guests. You can also migrate a virtual machine using the command line and vmkfstools. This creates a copy of the VMDK but requires the guest to be offline and the administrator to also rename the VMDKs and remove/add the virtual machine to keep the inventory correct.

This was first published in December 2012

Dig deeper on Data Storage Solutions for a Virtual Environment

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchSolidStateStorage

SearchCloudStorage

SearchDisasterRecovery

SearchDataBackup

SearchStorage

SearchServerVirtualization

SearchVirtualDesktop

Close