From wikistone
Jump to: navigation, search
(Created page with "===Thick to Thin:=== * VM must be powered off. * Use vCenter to see what host the VM to be converted is on and note down disks Datastore location. * Log into that hosts ILO re...")
 
 
Line 1: Line 1:
 +
Found here: http://communities.vmware.com/thread/296983
 +
 +
 
===Thick to Thin:===
 
===Thick to Thin:===
 
* VM must be powered off.
 
* VM must be powered off.

Latest revision as of 10:55, 25 January 2013

Found here: http://communities.vmware.com/thread/296983


Thick to Thin:

  • VM must be powered off.
  • Use vCenter to see what host the VM to be converted is on and note down disks Datastore location.
  • Log into that hosts ILO remote console as root user.
  • Navigate to the disk location.
  • Convert the original thick .vmdk into a thin one
vmkfstools -i SERVERNAME.vmdk -d thin thinSERVERNAME.vmdk
  • Move original .vmdk flat file out of the way.
vmkfstools -E SERVERNAME.vmdk orig-SERVERNAME.vmdk
  • Move new thin .vmdk flat file into place
vmkfstools -E thinSERVERNAME.vmdk SERVERNAME.vmdk
  • Remove VM from vcenter inventory and add back again otherwise disks do not show as 'Thin'
  • Check VM boots up and all drives are avaliable
  • Tidy up by deleting the original files
vmkfstools -U orig-SERVERNAME.vmdk


Some optional crap to clean up windblows (do first):

  • Within the VM run a defrag of the disk (this is optional but recommended)
  • Whilst it's defragging, copy MS Windows Sysinternals 'SDelete' exe to your local VM's disk.
This can be downloaded at http://technet.microsoft.com/en-us/sysinternals/bb897443 (47Kb)
  • Run 'sdelete -c' on the the disk.
  • Power off.


.