When your ESXi host uses the SCSI or NVMe protocol to connect to storage in the Virtual Volumes environment, the data and configuration virtual volumes are formatted with VMFS6. As a result, the space reclamation process available for VMFS can also be applied to both the data and configuration Virtual Volumes. When you reclaim space on the Virtual Volumes datastore, you can use the esxcli storage vvol command to manually unmap free blocks from the virtual volumes.
- NVMe backed data Virtual Volumes support space reclamation requests from guest operating systems.
- Configuration Virtual Volumes support automatic space reclamation. To reclaim the space manually, follow the steps in the given procedure.
Prerequisites
- For information about virtual volumes, see Types of Virtual Volumes.
- For information about the space reclamation process, see Storage Space Reclamation in vSphere.
Procedure
Example:
-
[root@:~]esxcli storage vvol virtualvolume unmap -c vvol:4abe7eb4bf234ee0xxxxxxxxx -u rfc4122.1ffee4bd-9c55-49b9-876d-xxxxxxxx
-
[root@:~] grep "Total Unmapped blocks from vmfs" /var/run/log/hostd.log
The output looks similar to the following:
2023-06-01T10:27:45.836Z In(166) Hostd[1000342556]: [Originator@6876 sub=Libs opID=esxcli-5f-1861 sid=523fac9d user=root] Unmap: Done : Total Unmapped blocks from vmfs6 volume rfc4122.1ffee4bd-9c55-49b9-87 6d-xxxxxxxx : 0 (LFB Pass)
2023-06-01T10:28:13.279Z In(166) Hostd[1000342556]: [Originator@6876 sub=Libs opID=esxcli-5f-1861 sid=523fac9d user=root] Unmap: Done : Total Unmapped blocks from vmfs6 volume rfc4122.1ffee4bd-9c55-49b9-87 6d-xxxxxxxx : 259421 (SFB Pass)