Enable TRIM/UNMAP from Nested vSAN OSA/ESA to physical vSAN OSA
When nested vSAN OSA or ESA runs on a physical vSAN OSA cluster, space freed inside the nested lab may never come back. Usage on the physical datastore keeps growing because guest TRIM/UNMAP does not reach it. Physical vSAN ESA has Guest TRIM/UNMAP on by default, so only OSA needs the fix. Set the advanced setting VSAN.GuestUnmap to 1 on the physical hosts, with esxcli system settings advanced set -o /VSAN/GuestUnmap -i 1 or with PowerCLI Set-AdvancedSetting. Then power cycle all nested vSAN workloads, including the nested ESXi VMs.
VSAN.GuestUnmap is one of the settings in my William Lam’s ESXi Advanced and Kernel Settings: 21 Lab Recommendations list, which also explains why it does not show up in a plain esxcli advanced settings list.
Source: Enable TRIM/UNMAP from Nested vSAN OSA/ESA to physical vSAN OSA by William Lam (williamlam.com, March 2025).

