Mount a Datastore with ESXCLI
Last Updated December 16, 2024

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 ESXCLI Host Management Commands in place of
<conn_options>
.
  1. List all volumes that have been detected as snapshots.
    esxcli <conn_options> storage filesystem list
  2. Run
    esxcli storage filesystem mount
    with 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>