Guidance on modifying the "unmap" ( Space Reclamation Settings ) in VMware environment.
Failure to follow the requirements may result in undesired outcomes such as poor performance
VMware ESXi 8.0U3
Space Reclamation Settings:
Following steps will allow to change Space Reclamation Settings or disabled it supported onwards vSphere 8.0 U3
|
Option
|
Description
|
|---|---|
|
Enable automatic space reclamation at fixed rate
|
Use the fixed method for space reclamation. Specify reclamation bandwidth in MB per second.
|
|
Disable automatic space reclamation
|
Deleted or unmapped blocks are not reclaimed.
|
PATH : vCenter vSphere UI > Datastore View > Select the Datastore > Configure > General > Space Reclamation > edit
NOTE :
1. VMware does not recommend to disable or modify the "unmap" operations unless otherwise specified by the end Storage vendor and VMware.
2.The changes in default "Space Reclamation Settings" may deviates from the system defaults and can have other unintended behaviors.
In the ESXI 8.0 U3. the unmap can be adjusted in vSphere UI and command line
On VMFS datastores, storage space is reclaimed when:
A VM is deleted.
A VM is migrated using vSphere Storage vMotion.
A snapshot is deleted or consolidated.
Within a Guest OS, storage space is freed when files are deleted. Most modern Guest OSs send these storage releases as Unmap commands to VMFS automatically. However, not all Guest OSs support automatic Unmap functionality.
With VMFS6, VMware introduced automatic tracking of free blocks. This feature enables background, asynchronous Unmap operations on datastores created with thin-provisioned storage LUNs.
Controlled Resource Usage:
Unmap requests are sent at a consistent rate, preventing burst loads on storage arrays.
Efficient Resource Reclamation:
Freed regions are batched and unmapped together for optimal efficiency.
Minimized Performance Impact:
Unmap processing is decoupled from truncate I/O paths, ensuring I/O performance remains unaffected.
| SCSI commands | SCSI operation by command |
| 0x93 | WRITE SAME(16) |
| 0x41 | WRITE SAME(10) |
| 0x42 | UNMAP |
| 0x89 | SCSI COMPARE and WRITE - ATS |
| 0x83 | EXTENDED COPY |