Command line
- Connect to the ESXi host with an SSH session and root credentials
- To list the volumes detected as snapshots, run this command:
esxcli storage vmfs snapshot list
You see output similar to:49d22e2e-996a0dea-b555-001f2960aed8
Volume Name: VMFS_1
VMFS UUID: 49d22e2e-996a0dea-b555-001f2960aed8
Can mount: true
Reason for un-mountability:
Can resignature: true
Reason for non-resignaturability:
Unresolved Extent Count: 1
- To mount a snapshot/replica LUN that is persistent across reboots, run this command:
esxcli storage vmfs snapshot mount -l label|-u uuid
For example:esxcli storage vmfs snapshot mount -l „VMFS_1”
esxcli storage vmfs snapshot mount -u „49d22e2e-996a0dea-b555-001f2960aed8”
- To mount a snapshot/replica LUN that is not persistent across reboots, run this command:
esxcli storage vmfs snapshot mount -n -l label|-u uuid
For example:esxcli storage vmfs snapshot mount -n -l „VMFS_1″esxcli storage vmfs snapshot mount -n -u „49d22e2e-996a0dea-b555-001f2960aed8”
- To resignature a snapshot/replica LUN (the volume is mounted immediately after the resignature), run this command:
esxcli storage vmfs snapshot resignature -l label|-u uuid
For example:esxcli storage vmfs snapshot resignature -l „VMFS_1″esxcli storage vmfs snapshot resignature -u „49d22e2e-996a0dea-b555-001f2960aed8”
- To mount the volume without performing a resignaturing of that volume (this volume is mounted when the ESX host is rebooted), run this command:
esxcfg-volume -M VMFS_UUID|label
For example:esxcfg-volume -M „VMFS_1″esxcfg-volume -M „49d22e2e-996a0dea-b555-001f2960aed8”
Note: To view the datastores again in vCenter Server, you may have to perform a rescan of the storage adapters on all ESXi hosts that the datastore is presented to or a refresh of the storage view. If you are having trouble identifying the affected datastore, in the vSphere client, check the storage view of another ESXi host that still has the datastore mounted correctly. This will then allow you to correlate VMFS datastore name with NAA LUN identifier.




