I've just gotten off the phone with VMWare support.
They've confirmed that TP has a serious limitation.
We have several guests with disks of say 150GB, 80GB free inside the guest, but when they are svmotioned to a new datastore using the TP option we will be lucky to reclaim 2 or 3GB. Apparently it is because those blocks, while free, have been 'dirtied' somehow, so the TP process sees those free blocks as 'occupied'.
This makes it impossible to plan migrations, LUNs, etc as there is no way of determining what can be TP and what is a dud, and essentially TP is a total dud for existing VMs.
That leads to my main question, does anyone know of a method of 'undirtying' blocks in linux and windows?
Interesting ... thanks asp24
You think that it would have been trivial to include that as part of the migration process! Just to confirm, the process would go something like this:
Linux (inside the guest)
#dd if=/dev/zero of=/empty_file; rm empty_file
(can that command be executed as one line?).
Followed by using vmkfstools inside the ESX host..? Does anyone know the correct syntax to use with vmkfstools?
Thanks for your assistance.
I'm using the steps found in Gabe's article. Basically, for Windows guests:
- Run "sdelete -c" on each disk (sdelete as shipped, not customized)
- Migrate > Change Datastore > pick the new destination > select Thin Provisioned Format