Changing the thick or thin provisioning of a virtual disk
search cancel

Changing the thick or thin provisioning of a virtual disk

book

Article ID: 323114

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article provides steps to change the provisioning of a virtual disk from thick to thin, or from thin to thick. The procedure uses the vSphere Client and vCenter Server to perform this task.

Environment

VMware vCenter Server 5.1.x
VMware vSphere ESXi 5.5
VMware ESXi 4.0.x Installable
VMware vCenter Server 5.0.x
VMware vSphere ESXi 5.1
VMware vCenter Server 5.5.x
VMware vCenter Server 6.5.x
VMware vSphere ESXi 6.7
VMware vCenter Server 4.0.x
VMware vSphere ESXi 7.0.0
VMware ESXi 4.1.x Installable
VMware vCenter Server 4.1.x
VMware ESXi 4.0.x Embedded
VMware vSphere ESXi 6.5
VMware ESXi 4.1.x Embedded
VMware vCenter Server 6.7.x
VMware vSphere ESXi 8.0.x
VMware vSphere ESXi 5.0
VMware ESX 4.1.x
VMware vCenter Server 6.0.x
VMware vSphere ESXi 6.0
VMware vCenter Server 7.0.x
VMware ESX 4.0.x

Resolution

Caution: Before following these procedures, VMware recommends that you have a valid backup of the virtual machine and enough space to convert the virtual machine's disk(s) from thin to thick.

To change vmdk from Thin to Thick provisioning 

To change the provisioning of a virtual machine base disk from thin to thick from the Datastore Browser:
  1. Power off the virtual machine.
  2. In vSphere Client, right-click the virtual machine in the inventory.
  3. Click Edit Settings to display the Virtual Machine Properties dialog box.
  4. Select the appropriate hard disk in the Hardware list.
Note: The Disk Provisioning Type section on the right displays either Thin Provision or Thick Provision.

vmdk tick to thin 
  1. Click Cancel to exit from Virtual Machine Properties dialog box.
  2. Navigate to the datastore where the VM/ VM disk resides that was identified in Step 4 under Files
vmdk thin to thick
  1. Select the disk in question, and in the status bar above, you should find the Inflate option. The Inflate option converts the disk to thick provisioned eager zeroed.
vmware convert thick to thin
 
 
  1. Once you've selected the inflate option, you should be seeing a task getting created for the vmdk inflation at the bottom in the Recent Tasks tab. This task usually takes sometime to complete depending on the performance of the array. 
  2. After the inflation task is completed, if the VM in question is not reflecting the change, reload the .vmx file. For more information, see Reloading a vmx file without removing the virtual machine from inventory (1026043).
Notes:
  • If the Inflate option is grayed out, it indicates that the virtual machine is not powered off or that it is not thin provisioned.
  • There should be no snapshots and the conversion is performed on the base disk.
  • Alternatively, a thin disk can be converted to thick via Storage vMotion (by changing the disk format), similar to the method outlined below to convert a vmdk from thick to thin format.

To change vmdk from Thick to Thin provisioning 

To convert a virtual machine base disk from thick to thin provisioning by changing the datastore and performing storage vMotion:
 
Note: This process requires more than one datastore. If only a single datastore exists, you can clone the virtual machine to a destination machine with thin provisioned disks instead of migrating.
  1. Right-click the virtual machine and select Migrate.
  2. Select Change storage only and click Next.
vmware convert thin to thick
 
  1. In the next window, select the option configure per disk.
thin to thick provisioning
  1. Select the disk in question which needs to undergo the modification.
  2. Under Storage category select the destination datastore and under the Disk Format option select Thin Provision.
Thin Provision
  1. Validate the required VM Storage Policy and click Next.
  2. Review the information on the Review Selections page and click Finish.

    Alternatively, virtual machine disks can be cloned to create new Thick or Thin provisioned VMDKs. For more information, see Cloning and converting virtual machine disks with vmkfstools (1028042).


    Additional Information