VMware Solutions Discussions

Shrink volume with LUN (VMFS)

eelco_kos
5,995 Views

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) ?

1 ACCEPTED SOLUTION

j_haley
5,997 Views

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.

View solution in original post

5 REPLIES 5

prakash_aviva
5,997 Views

As per your requirement, basically, you need to set thin provisioning. Set the guarantee of this volume to none. Also, disable the lun space reservation.

thomas_glodde
5,997 Views

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.

AdvUniMD
5,997 Views

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

-Michael

amiller_1
5,997 Views

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).

j_haley
5,998 Views

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.

Public