ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

What is VMware UNMAP? – Dead Space Reclamation

By Vladan SEGET | Last Updated: April 26, 2025

Shares

I've had a couple of questions concerning UNMAP and dead space reclamation, in VMware vSphere. We know this also as “TRIM” on Windows and other systems. While in the past, the mechanism of space reclamation was able to reclaim dead space from a thinly provisioned array, but also from thin provisioned VMs (or rather their VMDKs), the process was rather rudimentary, via CLI, and manual. Over the years, newer vSphere releases have added some improvements there.

The different vSphere versions in the past were able to handle the UNMAP command, first via CLI, then via GUI (starting vSphere 5.0 I believe). How is it now in ESXi 6.7 U1? The 6.5 got support to UNMAP and at the same time, we could use changed block tracking (CBT). Thig which were not possible in previous release.

ESXi supports the unmap commands issued directly from a guest operating system to reclaim storage space. Depending on if you have your datastore formatted with VMFS 5 or VMFS 6 the behavior differs.

How does it work?

When you delete some files within a VM, you free up some space. The guest operating system (OS) notifies VMFS about that newly available free space and sends an unmap command. The unmap command sent from the guest operating system releases space within the VMFS datastore. After that, the command is passed to the array level, where the array can reclaim the freed blocks of space.

For VMFS 6 – VMFS 6 uses SESparse format for delta disks, which is more space efficient and supports a space reclamation technique. Here are the details.

Quote from VMware vSphere 6.7 documentation set:

VMFS6 processes the unmap request from the guest OS only when the space to reclaim equals 1 MB or is a multiple of 1 MB. If the space is less than 1 MB or is not aligned to 1 MB, the unmap requests are not processed.

For VMs with snapshots in the default SEsparse format, VMFS6 supports the automatic space reclamation only on ESXi hosts version 6.7 or later. If you migrate VMs to ESXi hosts version 6.5 or earlier, the automatic space reclamation stops working for the VMs with snapshots.

VMFS 5 – some limited OS can proceed with the command automatically, but you must initiate the unmap command to the array via CLI by issuing esxcli storage vmfs unmap command.

There are also some requirements, which are as follows:

  • The virtual disk must be thin-provisioned.
  • Virtual Machine hardware version 11 (ESXi 6.0) or later. (VMX-11). For Linux HW version 13.
  • The advanced setting EnableBlockDelete must be set to 1.
  • The guest operating system must be able to identify the virtual disk as thin.

Where To check the configuration within vSphere?

In vSphere 6.7 the space reclamation settings are ON, and are set on “Enable Space Reclamation at Fixed Rate”.

As you will see, it is “per-datastore” option.

You connect via vSphere client, chose Storage > click your Datastore > General > Space Reclamation.

You can change the fixed values or you can disable completely the UNMAP feature if you have some particular reason. You are able to change the values of the Space Reclamation rate from 100MBps to 2GBps.

Maybe you could check a documentation from your storage array vendor on the best setting? As what I heard, VMware worked on this feature in conjunction with many array vendors and settings may vary.

Carefully when your array has only spinning media (or hybrid). Check to see which value you should enter, with your vendor.

Check settings via CLI?

Yes, we can. There is a command:

esxcli storage vmfs reclaim config get –volume-label <volume-name>

Which types of datastore are supported?

  • VMFS 6 (1Mb Block/page)
  • NFS (check with the vendor support)
  • VVOLs
  • VSAN support at the Guest OS level

How about on VMware vSAN?

Yes, VMware vSAN does also support automatic UNMAP and with the latest release of vSphere 6.7 U1 there were enhancements made to the mechanism. You'll have to go to Ruby vSphere Console (RVC) to disable this at cluster-wide level. (please correct me if I'm wrong on this).

vSAN thin provisioning has to first set the SPBM Policy for Object Space Reservation (OSR) to its default of 0.

You can read all the details from this blog post at VMware, published by John Nicholson.

Quote from the post:

This feature is enabled initially globally for the cluster. This feature may be disabled with a customer VMX configuration setting, or by disabling it within the guest operating system.

VMware vSAN 6.7U1 introduces automated space reclamation support with TRIM and SCSI UNMAP support. SCSI UNMAP and the ATA TRIM command enable the guest OS or file system to notify that back-end storage that a block is no longer in use and may be reclaimed. vSAN does not use LUNs or VMFS, so this does not require multiple layers of reclamation like traditional storage.

Wrap Up: We have just scratched the surface. There are also CLI commands to check the configs of your datastores (if you have many). You will certainly find more useful resources if needed. This post was meant to be just an education resource on what's available and how it works. If you want to dig deeper, you certainly can.

The dead space reclamation for thin provisioned VMs, just a few years ago, haven't really worked, or not quite well. Not only that VMware did not have that feature, or did worked, but not as it should, but also due to OS support.

But again, I'm not a storage specialist, just general tech guy … -:).

Check out VMworld 2018 session – “Better Storage Utilization with Space Reclamation/UNMAP [HCI3331BU]”

VMware vSphere 6.7 U1 Buy/Download links:

vSphere All Editions – different versions of vSphere
VMware vSphere 6.7 U1 Essentials PLUS – full vSphere suite for SMB
VMware vSphere 6.7 U1 Essentials – Good way to start, for small shops.
Per Incident Support Click Here

VMware vCenter Server 6.7 U1 Download
VMware vSphere Hypervisor (ESXi) 6.7 U1 Download

More from ESX Virtualization

  • Veeam Availability Suite 9.5 U4 and VeeamON Virtual Details
  • VMware vSphere 6.7 U1 Download Now
  • What is The Difference between VMware vSphere, ESXi and vCenter
  • What is VMware Memory Ballooning?
  • Upgrade ESXi To The Latest Version Without Any Software Download
  • How to Patch VMware vCenter Server Appliance (VCSA) 6.7 Offline
  • How To do a Dry Run of an esxcli Installation or Upgrade on VMware ESXi

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
Vote !

| Filed Under: Server Virtualization

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Marco says

    November 28, 2018 at 10:55 pm

    Excellent post as usual.
    Just a question: you always speak about thin. What unmap on thick?

    Best
    Marco

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in