Mount a Datastore with
ESXCLI
The
esxcli storage
filesystem
commands support mounting and unmounting volumes. You can
also specify whether to persist the mounted volumes across reboots by using the
--no-persist
option.
Use the
esxcli storage
filesystem
command to list mounted volumes, mount new volumes, and
unmount a volume. Specify one of the connection options listed in
Connection Options for vCLI Host Management Commands
in place of
<conn_options>
.
- List all volumes that have been detected as snapshots.esxcli <conn_options> storage filesystem list
- Runesxcli storage filesystem mountwith the volume label or volume UUID.esxcli <conn_options> storage filesystem volume mount --volume-label=<label>|--volume-uuid=<VMFS-UUID>This command fails if the original copy is online.
You can later run
esxcli storage
filesystem volume unmount
to unmount the snapshot volume.
esxcli <conn_options> storage filesystem volume unmount --volume-label=<label>|--volume-uuid=<VMFS-UUID>