How-to Consolidate virtual machine disks
Introduction
When you initiate a Delete or DeleteAll operation on snapshots, the snapshot is immediately deleted, then the backing virtual machine disk .vmdk
files are consolidated on-disk. If the consolidation fails [during snapshot deletion], some Virtual Disk files may remain on disk and/or be actively used on the Datastore, consuming storage capacity. (Source: VMware).
Additional space is temporarily required to perform the operation. Consolidation can be I/O intensive, it is advisable to invoke this operation when guest is not under heavy I/O usage.
Step-by-step guide - VSS Portal
Login to https://vss-portal.eis.utoronto.ca
Look for the VM to edit and click the button.
From the VM action section (bottom), click on CONSOLIDATE
Confirm and a consolidation task will be submitted.
Step-by-step guide - VSS CLI
Using https://vss-cli.eis.utoronto.ca or a local VSS CLI install
Disk consolidation is treated as a change request and can be scheduled with the
--schedule/-s flag
. If disk consolidation is required, runvss compute vm set <name-or-id> consolidate
as shown below:vss-cli compute vm set --schedule "2017-09-06 00:00" {Name-or-Uuid} consolidate
Check the state of the request made by running:
vss-cli request change ls -s created_on,desc -c 1
Step-by-step guide - VSS Intervention
Send an email to vss(at)eis.utoronto.ca requesting to consolidate disks
Wait for email confirmation
Related articles
University of Toronto - Since 1827