6.5

Table Of Contents
The following examples illustrate how to use the command.
# esxcli storage vmfs unmap --volume-label datastore1 --reclaim-unit 100
# esxcli storage vmfs unmap -l datastore1 -n 100
# esxcli storage vmfs unmap --volume-uuid 515615fb-1e65c01d-b40f-001d096dbf97 --reclaim-unit 500
# esxcli storage vmfs unmap -u 515615fb-1e65c01d-b40f-001d096dbf97 -n 500
# esxcli storage vmfs unmap -l datastore1
# esxcli storage vmfs unmap -u 515615fb-1e65c01d-b40f-001d096dbf97
Using vifs to View and Manipulate Files on Remote ESXi Hosts
You can use the vifs utility for datastore le management.
C If you manipulate les directly, your vSphere setup might end up in an inconsistent state. Use the
vSphere Web Client or one of the other vCLI commands to manipulate virtual machine conguration les
and virtual disks.
The vifs command performs common operations such as copy, remove, get, and put on ESXi les and
directories. The command is supported against ESXi hosts but not against vCenter Server systems.
Some similarities between vifs and DOS or UNIX/Linux le system management utilities exist, but there are
many dierences. For example, vifs does not support wildcard characters or current directories and, as a
result, relative pathnames. You should use vifs only as documented.
Instead of using the vifs command, you can browse datastore contents and host les by using a Web
browser. Connect to the following location.
http://ESX_host_IP_Address/host
http://ESX_host_IP_Address/folder
You can view data center and datastore directories from this root URL. The following examples demonstrate
the syntax that you can use.
http://<ESXi_addr>/folder?dcPath=ha-datacenter
http://<ESXi_host_name>/folder?dcPath=ha-datacenter
The ESXi host prompts for a user name and password.
The vifs command supports dierent operations for the following groups of les and directories. Dierent
operations are available for each group, and you specify locations with a dierent syntax. The behavior
diers for vSphere 4.x and vSphere 5.0.
Chapter 3 Managing Files
VMware, Inc. 35