Unable to poweron or consolidate a VM due to insufficient disk space on datastore for VMware vSphere ESXi
search cancel

Unable to poweron or consolidate a VM due to insufficient disk space on datastore for VMware vSphere ESXi

book

Article ID: 392530

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Attempting to consolidate virtual machine fails with an error similar to below:

    Insufficient disk space on datastore '<datastore name>'. Consolidation failed for disk node 'scsi#:#': There is not enough space on the file system for the selected operation. An error occurred while consolidating disks: There is not enough space on the file system for the selected operation.

  • The /var/run/log/hostd.log  confirms that the snapshot consolidation task failed with below error:

    YYYY-MM-DDTHH:MM.SSSZ Db(##) Hostd[#####]: [Originator@### sub=###.####.vm:/vmfs/volumes/########-########-####-###########/######/#####.vmx opID=#####-####-####-####-###:######-##-##-#### sid=###### user=#######:#####.####\#########] Consolidate Disks message: An error occurred while consolidating disks: There is not enough space on the file system for the selected operation.
  • The VM may also fail to power on. 

Environment

VMware vSphere ESXi (All Versions)

Cause

In order to consolidate a snapshot chain, the ESXi host must have sufficient free disk space on the virtual machine's assigned datastore. This space is used to ensure the consolidation properly written to the base disk.  For more details refer to Consolidating/Committing snapshots in VMware ESXi

Resolution

IMPORTANT: Before proceeding, verify that the storage environment has at least 1.5x the total size of the snapshot available as insufficient capacity will result in repeated operation failure and potential data loss.

To resolve the issue, increase the datastore free space by referring to below methods:

  1. Expand the LUN to at least the recommended size based on the the error message details and extend the VMFS datastore by referring to Extending a VMFS volume to use new LUN space after expansion 

    NOTE: SIOC does not support multiple extents. If you need to add an extent you will need to disable SIOC on the LUN.

  2. Delete unwanted files residing on the affected datastore such as ISOs, templates, unwanted virtual machines, or unused virtual disks.
    • f the datastore is at 0% free capacity, you may be unable to delete files directly from the datastore. Check your storage array management interface for array-level snapshots that may be consuming the final remaining capacity. Deleting these array-level snapshots will free the space required to generate file locks for standard datastore management.

  3. Storage vMotion the virtual machine disks to another datastore with more available free space.

Workaround:

Clone the virtual machine to a new VM on a new datastore. This will consolidate the snapshots during the operation. Delete the original VM once the new VM is deemed up and operational.

Additional Information

Additional information on errors when consolidating snapshots can be found below:

データストアのディスク容量不足のため、VMを統合できません - VMware vSphere ESXi