Unable to perform fstrim on any of the virtual machines in the vSAN Cluster
book
Article ID: 405374
calendar_today
Updated On:
Products
VMware vSAN 8.xVMware vSAN 7.x
Issue/Introduction
Symptoms:
Upon running fstrim on Linux virtual machine hosted on vSAN cluster, it reported an error "fstrim path the discard operation is not supported".
Environment
VMware vSAN 7.x
VMware vSAN 8.x
Cause
The issue is seen when Guest unmap/trim service is not enabled on vSAN cluster services. If the unmap/trim is not enabled at the vSAN layer, it would not allow the fstrim to function at the guest layer.
fstrim: /var/log/:the discard operation is not supported
By default, Trim/Unmap is not enabled in vSAN Cluster .