So we're migrating our SAN storage from an EMC VNX to an all-flash
XtremIO (ooh! ahhh! LOL). Anyway, EMC is telling us that all my hosts
(a few physical, most VMs) really need to use the TRIM/UNMAP feature,
to actually release deleted data, to reclaim space. My questions here
are about Windows hosts and guests; I will get to the VMware part
later (pretty sure I can release at the datastore level with a
scheduled PowerCLI script).
Win 2012 R2 has this enabled by default ("fsutil behavior query
disabledeletenotify"). But apparently Win 2008 R2 does not.
Older Windows versions does not include automatic UNMAP support. Third
party tools can be used to reclaim space.
https://kallesplayground.wordpress.com/2014/04/26/storage-reclamation-part-2-windows/
OK, fine. So I need to run a utility to do that. EMC recommends the
"sdelete" utility from SysInternals.
My questions: how best to do that on 80+ hosts, each of whom have
multiple disks? sdelete only works locally, right? I can't point it at
a host (sdlete \\that-host-there -z).
So I guess I need some way to enumerate all the disks only on my Win
2008 boxes, and then run "sdelete -z <drive letter>" on it. I'm guess
I will eventually need to do periodically, like as a scheduled task.
Ideas, anyone?