2010-06-22 04:34 AM
On our Netapp we have a 500 GB volume with a 400 GB LUN which contains the VMFS datastore of our vSphere environment.
I would like to reclaim the 100 GB of unused space. Is it possible to shrink the volume to 400 GB and keep the existing LUN (without losing any data) ?
Solved! SEE THE SOLUTION
2010-06-23 01:11 AM
To actualy answer your question: No, it is currently not possible to shrink a VMFS Volume, neither using ESX 3.5 nor vSphere 4.
To further help on your issues: It is possible tho to keep the VMFS as it is but reclaim the space on the netapp. You should check the Thin Provisioning Guide and see which method fits your needs best. As already mentioned, volume guarantee none and space reservation off is a good start.
2010-06-23 11:58 AM
If you really want or need to shrink a datastore, then I'd highly recommend looking at using NFS from your NetApp to ESX -- growing and shrinking a datastore becomes trivial (can even do it from the vCenter interface with the RCU plugin from NetApp).
2010-06-24 01:07 AM
Actually that wasn't his question, he wanted to shrink the volume not the LUN/FS inside.
Anyway, the only way to non-disruptively shrink an ESX LUN datastore is to create a new (smaller) one, SVMotion all VMs into it, and then delete the old (larger) one. Problem is that you need more space temporarily, which most people who want to shrink the volume/LUN don't have
2010-06-25 08:33 AM
The answer to your question is yes - you can shrink a volume without impacting the LUN. Additionally, you could change the volume guarantee from volume to file and the 100GB that's unused would be returned to the containing aggregate.