1

It would be nice to be able to convert a Lazy Zeroed disk to an Eager Zeroed disk after disk creation in VMware - is this possible?

I understand the basic difference between Thick Provision Lazy Zeroed and Thick Provision Eager Zeroed. I usually want to do Lazy Zero so I can create the disk faster. And the eager zeroed performance increase is not large in most circumstances.

However, it would be nice to make the disk Eager Zeroed after disk creation, perhaps as a background task.

  • If you have multiple datastores then you should be able to convert the disk by migrating the VM storage to another datastore and selecting the appropriate disk format. Then simply migrate it back to the original datastore. – joeqwerty Dec 30 '15 at 19:48
  • I'm curious what type of environment still requires thick-provisioned disks. – ewwhite Dec 30 '15 at 22:59
  • @ewwhite thick provisioning isn't required, but possibly desired – steampowered Dec 30 '15 at 23:07
  • Sure. I understand @steampowered. But add the context to the question if you can. It may be interesting to note use cases where thick-provisioning is beneficial. – ewwhite Dec 30 '15 at 23:20
1

You can use the vmkfstools with the -k option. For example:

vmkfstools -k disk.vmdk

However, you will have to shutdown the VM first and login to the ESXi Shell.

Also, to determine if a disk is zeroedthick or eagerzeroedthick, you can use the same command with the -D parameter as:

vmkfstools -D disk.vmdk

Then look for tbz 0 in the resulting output. If the value is 0 then the disk is eagerzeroedthick, otherwise it is zeroedthick.

Both commands are described in the follwing VMware KB article:

Determining if a VMDK is zeroedthick or eagerzeroedthick (1011170)

2

Storage vMotion or a powered-off datastore migration will allow you to select a different disk type. Then just migrate the disk back to the original datastore, if desired.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.