vCloud Availability for vCloud Director Portal contains scripts to support consolidation of failed over, powered on VMs with MPIT (Multiple Point in Time) snapshots. You can consolidate the stale snapshots of the VMs for the entire vCloud Director, an organization, an organization VDC, a vApp, or a single VM.

If a protected VM uses snapshots, all of them are retained after a failover. Such redundant snapshots have a negative impact on the failed over VM because of the following:

  • Storage performance is non-optimal due to complex disk write I/O.

  • Storage allocation is not properly reported on vCloud Director since it does not include snapshots.

  • Storage billing and provisioning can be mislead.

To free a VM of its stale snapshots, use the vcd command of the vCloud Availability Installer Appliance.

Use a command line in the following format: vcav vcd SUBCOMMAND [ARGUMENT].

You can pass the following subcommand values and arguments:

SUBCOMMAND

ARGUMENT

Description

consolidate

None

Consolidates the snapshots of all VMs in vCloud Director.

Note:

It can be potentially long operation.

consolidate

--orgs <org_name1>[<org_name2>...<org_nameN>]

Consolidates the snapshots of the VMs in the organizations <org_name1>[<org_name2>...<org_nameN>].

consolidate

--vdcs <org_vdc_name1>[<org_vdc_name2>...<org_vdc_nameN>]

Consolidates the snapshots of the VMs in the organization VDCs <org_vdc_name1>[<org_vdc_name2>...<org_vdc_nameN>].

consolidate

--vapps <vapp_name1>[<vapp_name2>...<vapp_nameN>]

Consolidates the snapshots of the VMs in the vApps <vapp_name1>[<vapp_name2>...<vapp_nameN>].

consolidate

--vms <vm_name1>[<vm_name2>...<vm_nameN>]

Consolidates the snapshots of the VMs <vm_name1>[<vm_name2>...<vm_nameN>].

You can combine subcommands into a single line. For example, vcav vcd consolidate --orgs <org_name1> <org_name2> --vapps <vapp_name1> <vapp_name2>.