ESXi 6.5: mount a datastore that does not automount; esxcfg-volume to the rescue
Posted by jpluimers on 2019/03/29
I had a 1.5 TB SATA disk with VMFS5 created on ESXi 5.1 that would not want to mount on ESXi 6.5 automatically, not even after a rescan, or fresh boot, so I did this:
[root@ESXi-X10SRH-CF:~] esxcfg-volume --help
esxcfg-volume
-l|--list List all volumes which have been
detected as snapshots/replicas.
-m|--mount Mount a snapshot/replica volume, if
its original copy is not online.
-u|--umount Umount a snapshot/replica volume.
-r|--resignature Resignature a snapshot/replica volume.
-M|--persistent-mount Mount a snapshot/replica volume
persistently, if its original copy is
not online.
-U|--upgrade Upgrade a VMFS3 volume to VMFS5.
-h|--help Show this message.
[root@ESXi-X10SRH-CF:~] esxcfg-volume --list
Scanning for VMFS-3/VMFS-5 host activity (512 bytes/HB, 2048 HBs).
VMFS UUID/label: 59a5306c-a8793061-4a23-001f29022aed/ST1500LM0032D9YH148-backup
Can mount: Yes
Can resignature: Yes
Extent name: naa.5000c5002dba6642:1 range: 0 - 1430527 (MB)
Scanning for VMFS-3/VMFS-5 host activity (512 bytes/HB, 2048 HBs).
VMFS UUID/label: 532cd010-6e8c01d1-45be-001f29022aed/Raid6SATA
Can mount: Yes
Can resignature: Yes
Extent name: naa.600605b00aa054a0ff000021022683ae:1 range: 0 - 1830143 (MB)
[root@ESXi-X10SRH-CF:~] esxcfg-volume -m 532cd010-6e8c01d1-45be-001f29022aed/Raid6SATA
No matching volume 532cd010-6e8c01d1-45be-001f29022aed/Raid6SATA found!
[root@ESXi-X10SRH-CF:~] esxcfg-volume --mount 532cd010-6e8c01d1-45be-001f29022aed
Mounting volume 532cd010-6e8c01d1-45be-001f29022aed
Based on: [WayBack] Mount VMFS Datastore – via GUI or via CLI [Guide] – ESX Virtualization
–jeroen






Leave a comment