Network and Storage Protocols

Data release in vm

avinchakov
5,072 Views

I have virtual machine (Ubuntu) on vmware. Datastore is connected by nfs. Data grow in the virtual machine and are cleared. But upon vmware shows that the virtual machine takes the maximum place. Everywhere thin provision. How to release a place? I know that it is possible to zeroing the empty place in virtually machine and to release with the esxi. Whether it is possible to automate it? Maybe the driver is?

4 REPLIES 4

georgevj
5,031 Views

Datastores created over NFS should automatically give you the freespace as data is deleted. Where do you see the space being occupied? At ESXi side of at NetApp side? Do you have a sample output of "df" command from DataONTAP CLI for both before and after deleting data? For VMFS datastores on NetApp LUNs, you may have to use the space reclamation feature of the Virtual Storage Console (VSC).

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

avinchakov
5,026 Views

netapp:

Снимок экрана 2015-10-05 в 16.31.34.png

vmware capacity of datastore:

Снимок экрана 2015-10-05 в 16.26.27.png

 

 

 

 

 

vmware vm resources:

Снимок экрана 2015-10-05 в 16.25.53.png

os #df -h

Снимок экрана 2015-10-05 в 16.27.29.png

 

where is ~300Gb ???

 

 

shatfield
5,024 Views

You have a VMDK on an NFS datastore, which expanded to hold files which have since been deleted.  You are looking for a way to reclaim that space, correct?

 

VSC has a space reclamation utility for NFS datastores, but I think it requires an NTFS file system in the vmdk.

 

With 8.3 or later inline zero elimination should give the space back to the volume if you zero fill the whitespace on that disk, but the vmdk itself will still appear to be full size.

 

Otherwise zero fill the whitespace, then storage vmotion it to another datastore with "thin provisioned" selected as the disk format.

 

 

avinchakov
4,975 Views

Yes, I think I must zeroing space in Ubuntu OS, then reclaim it in ESXi. Whether simply I wanted to learn there is easier way...

Public