Solved

free up hardware space

Posted on 2013-12-14
2
415 Views
Last Modified: 2013-12-30
I have created few VMs on a vmfs datastore.
I have now deleted the VMs from the datastore.
There is no files and folder on the data store.
The data store still shows the used space as same prior to deleting the vas.
What I have to do on esxi to show the actual free space?
0
Comment
Question by:sara2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 121
ID: 39719230
can you login via the Console (or SSH) and also confirm, space is not being reclaimed.

What is the SAN?

Some SANs do this, and you need to run a reclaim, or delete the LUN, and re-create the LUN.
0
 
LVL 10

Accepted Solution

by:
Mohammed Rahman earned 500 total points
ID: 39719813
vSphere 5.0 introduced the VAAI Thin Provisioning Block Space Reclamation (UNMAP) Primitive. This feature was designed to efficiently reclaim deleted space to meet continuing storage needs. ESXi 5.x issues UNMAP commands for space reclamation during several operations.

There were some issues with this approach, however, primarily regarding performance and an array's ability to reclaim the space in an optimal time frame.

For this reason, the UNMAP operation has been disabled by default in ESXi500-201112001 (ESXi 5.0 Patch 02) and ESXi 5.0 Update 1.


Confirming if SCSI UNMAP is supported on a LUN

Open an SSH session to a host and run this command:

# esxcli storage core device vaai status get -d naa

Example output:

naa.60a98000572d54724a346a6170627a52
VAAI Plugin Name: VMW_VAAIP_NETAPP
ATS Status: supported
Clone Status: supported
Zero Status: supported
Delete Status: supported

In this example, the device displays the Delete Status as supported, meaning that it is capable of sending SCSI UNMAP commands to the array when a space reclaim operation is requested.

Using vmkfstools -y in vSphere 5.0 U1 or later and vSphere 5.1

To use the -y option with vmkfstools, run these commands:

# cd /vmfs/volumes/volume_name
# vmkfstools -y percentage_of_deleted_blocks_to_reclaim

Please refer vmkfstools to reclaim VMFS deleted blocks for detailed instructions.

An EXCELLENT article explaining why unused space on the storage is not released automatically when you delete or migrate a virtual machine and how to Reclaim Space from Thin Provisioned VMFS Datastores
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question