Deploying a vApp in VMware vCloud Director fails with the error: Insufficient disk space on datastore
search cancel

Deploying a vApp in VMware vCloud Director fails with the error: Insufficient disk space on datastore

book

Article ID: 340893

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
When you attempt to create a new vApp in vCloud Director (vCD), you experience these symptoms:
  • You are unable to provision a virtual machine disk for the vApp.
  • In the vCD UI, you see an error similar to:

    Insufficient disk space on datastore 'test_datastore'

  • This issue occurs when there is insufficient storage space to deploy the vApp/virtual machine in the available datastores in your data center.


Environment

VMware Cloud Director 5.5.x
VMware Cloud Director 5.1.x
VMware Cloud Director 1.5.x

Cause

This issue occurs during vApp deployment when the vCD placement engine attempts to find resources sufficient for the virtual machine requirements. The placement engine checks the resource pool and if there is insufficient free space to accommodate the vApp, it is assigned to another resource pool. vCD does not allow a vApp to span multiple datastores. Even if storage profiles are in use, vCD does not allow a virtual machine disk to spread across multiple datastores. The datastore must have enough free space to accommodate the entire vApp.

Resolution

To allow vApp deployment, perform one of these options:
  • Deploy the vApp to a datastore with enough free storage space for all virtual machine disks.

    Or

  • Use Storage vMotion to free up storage space on the target datastore.

Note: If the VMFS datastore you want to use for vApp deployment is full, you can grow or expand it. For more information, see Growing or expanding a VMFS volume or datastore (1017662).


Additional Information

Best Practices and deployment recommendations

It is recommended that you use shared storage that is available to all clusters in an Elastic Virtual Datacenter (vDC). An Elastic vDC allows a Provider vDC to span multiple DRS clusters. This helps to avoid fragmentation of storage resources as virtual machines are deployed to individual clusters. Also, this design enables greater mobility of virtual machines across different clusters in an Elastic vDC.

For more information on Elastic vDCs, see:
Unable to grow or expand a VMFS volume or datastore
Advantages of using Elastic vDCs in vCloud Director 1.5
Resource pool selection process by Elastic vDC in vCloud Director 1.5