Solved

free up hardware space

Posted on 2013-12-14
2
409 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
2 Comments
 
LVL 119
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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.
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO‚Ķ

809 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