Solved

free up hardware space

Posted on 2013-12-14
2
405 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 118
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now