VxRail: How to enable TRIM/UNMAP on vSAN for space reclamation

Summary: This KB article discusses how to enable TRIM/UNMAP on all ESXi hosts on the vSAN cluster to reclaim space on the vSAN datastore.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

What is TRIM/UNMAP?
In an attempt to be more efficient with storage space, modern guest operating system file systems could reclaim no longer used space using what are known as Trim/Unmap commands for the respective Advanced Technology Attachments (ATA) and SCSI protocols.
vSAN 6.7 U1 (and new versions) now have full awareness of the Trim/Unmap command sent from the guest operating system and can reclaim previously allocated storage as free space.
This is an opportunistic space efficiency feature that can deliver better storage capacity utilization in vSAN environments.

Why use the UNMAP feature?
One thin provisioning challenge is that Virtual Machine Disks (VMDKs), once grown, do not shrink when files within the guest operating system are deleted. This problem is amplified because many file systems always direct new writes into free space. A steady set of writes to the same block of a single small file eventually use more space at the VMDK level. Previous solutions required manual intervention and storage vMotion to external storage, or powering off a virtual machine. To solve this problem automated TRIM/UNMAP Space Reclamation was created for vSAN 6.7U1.

 Important considerations at the Virtual Machine (VM) Level:

  • A minimum of virtual machine hardware version 11 for Windows
  • A minimum of virtual machine hardware version 13 for Linux
  • The disk.scsiUnmapAllowed flag is not set to false. The default is implied as true. This setting can be used as a "stop switch" at the virtual machine level should you want to disable this behavior on a per VM basis and do not want to use it in guest configurations to disable this behavior. VMX changes require a reboot to take effect.
  • The guest operating system must be able to identify the virtual disk as thin provisioned.

VMs which are already running before enabling the TRIM/UNMAP feature, require a power cycle to apply the setting. Enabling the TRIM/UNMAP feature on all VMs simultaneously can impact production performance, depending on the workload, and is not recommended. Power-cycling all VMs simultaneously should be avoided.

Before enabling TRIM/UNMAP, run the skyline health check to verify the vSAN is in a health state: About the vSAN Skyline Health

Steps to enable the TRIM/UNMAP feature on vSAN 8:

  1. In vSphere, select the Cluster > Configure > vSAN Services
  2.  Under Advanced Options, click Edit:


Screenshot of advanced options editFigure 1. vSAN Services > Advanced Options > Edit 
 

  1. In Advanced Options, select the toggle for Guest Trim/Unmap and click Apply, green is enabled:
    Screenshot of trim/unmap enablement

Figure 2. Select Guest Trim/Unmap

Additional Information

For additional information about checking TRIM/UNMAP status, enabling on vSAN 7.x, or monitoring TRIM/UNMAP performance, see: Procedure to Enable TRIM/UNMAP to reclaim space on vSAN datastore.This hyperlink is taking you to a website outside of Dell Technologies. 

Affected Products

VxRail, VMWare Cloud on Dell EMC VxRail E560F, VMWare Cloud on Dell EMC VxRail E560N, VxRail 460 and 470 Nodes, VxRail Appliance Family, VxRail Appliance Series, VxRail G Series Nodes, VxRail D Series Nodes, VxRail D560, VxRail D560F , VxRail E Series Nodes, VxRail E460, VxRail E560, VxRail E560 VCF, VxRail E560F, VxRail E560F VCF, VxRail E560N, VxRail E560N VCF, VxRail E660, VxRail E660F, VxRail E660N, VxRail E665, VxRail E665F, VxRail E665N, VxRail G560, VxRail G560 VCF, VxRail G560F, VxRail G560F VCF, VxRail P Series Nodes, VxRail P470, VxRail P570, VxRail P570 VCF, VxRail P570F, VxRail P570F VCF, VxRail P580N, VxRail P580N VCF, VxRail P670F, VxRail P670N, VxRail P675F, VxRail P675N, VxRail S Series Nodes, VxRail S470, VxRail S570, VxRail S570 VCF, VxRail S670, VxRail Software, VxRail V Series Nodes, VxRail V470, VxRail V570, VxRail V570 VCF, VxRail V570F, VxRail V570F VCF, VXRAIL V670F, VxRail VD-4000R, VxRail VD-4000W, VxRail VD-4000Z, VxRail VD-4510C, VxRail VD-4520C, VxRail VD Series Nodes, VxRail VE-660, VxRail VE-6615, VxRail VE-670, VxRail VP-760, VxRail VP-7625, VxRail VP-770, VxRail VS-760 ...
Article Properties
Article Number: 000194883
Article Type: How To
Last Modified: 21 أبريل 2026
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.