gbsantos
Contributor
Contributor

Resize disk on VMware ESXI 5

Good afternoon,

It is possible to make the resize a virtual disk? The tests I've done is possible to increase a thin disk, however it is not possible to reduce this disk. Does anyone know if it is possible to realize downsizing of a thin disc?

Att,
Tags (3)
0 Kudos
3 Replies
Anjani_Kumar
Commander
Commander

Well. this can be done by doing V2V conversion at the last summary wizard you can edit the disk size to less than current . Doesnt matter its Thin or Thick.

All the best,


Please consider marking this answer "correct" or "helpful" if you found it useful.

Anjani Kumar

VMware vExpert 2014 .  Infrastructure Specialist.

Email ID : Anjani.kumar@vmwareminds.com

Website :   http://www.Vmwareminds.com

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
vNEX
Expert
Expert

Hello,

you have two choices if you want to just reclaim the space first zero out unused space with e.g. SDelete utility from within the guest OS and then use vmkfstools -K <path to .vmdk> command (from ESXi shell) to punch zeroes this will dealocate

all zeroed out blocks and leaves only those which contains valid data. --Before this operation shut down your VM--

Another option (after in-guest SDelete operation) instead of using vmkfstools is to use Storage vMotion and move VM to another VMFS datastore this will also reclaim null blocks. (for this method to work both VMFS datastores must have same block size)

If you want to permanently resize/reduce thin disk use Standalone Converter choose  P2V/V2V conversion ...in destination location options under Data to copy...choose "Min size" in destination size column.

Converter download: https://my.vmware.com/group/vmware/info?slug=infrastructure_operations_management/vmware_vcenter_con...

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
vfk
Expert
Expert

Storage vMotion to another another datastore, V2V involves down time, and this depends how big your VM is.  If you are thin provisioning on the storage back-end then you should not really thin provision VM (thin-on-thin) as general rule.

--- If you found this or any other answer helpful, please consider the use of the Helpful or Correct buttons to award points. vfk Systems Manager / Technical Architect VCP5-DCV, VCAP5-DCA, vExpert, ITILv3, CCNA, MCP
0 Kudos