PowerCLI

All posts tagged PowerCLI

To move the CBT files and consolidate snapshots:
  1. SSH to Host
  2. Navigate to the VM folder using this command: cd /vmfs/volumes/datastore/virtual_machine/
  3. Create a temporary directory for the CBT files. mkdir temp
  4. Move the CBT files to temp directory. mv *-ctk.vmdk temp/
  5. Run the snapshot consolidation again.
To set the parameter snapshot.asyncConsolidate.forceSync to TRUE using the vSphere client: 1. Shut down the virtual machine. 2. Right-click the virtual machine and click Edit settings. 3. Click the Options tab. 4. Under Advanced, right-click General 5. Click Configuration Parameters, then click Add Row. 6. In the left pane, add this parameter: snapshot.asyncConsolidate.forceSync 7. In the right pane, add this value: TRUE 8. Click OK to save your change, and power on the virtual machine. OR this Powercli command: get-vm virtual_machine_name | New-AdvancedSetting -Name snapshot.asyncConsolidate.forceSync -Value TRUE -Confirm:$False Taken from https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2082886