Recovering a lost partition table on a VMFS-5 volume with GPT
| Action | Command | |--------|---------| | List datastores | esxcfg-datastore -l | | Check partitions | partedUtil get /dev/disks/naa... | | Unmount datastore | esxcfg-datastore -u "DSname" | | Check VMFS | voma -m vmfs -f check -d /vmfs/devices/disks/naa... | | Fix VMFS | voma -m vmfs -f fix -d /vmfs/devices/disks/naa... | | Mount datastore | esxcfg-datastore -m "/vmfs/devices/disks/naa...:1" "DSname" | recover vmfs datastore esxi 5
If partition table lost, recreate first partition starting at sector 128 (typical) or 2048 with VMFS type: Recovering a lost partition table on a VMFS-5
If errors found, attempt fix:
voma -m vmfs -f fix -d /vmfs/devices/disks/naa.YOUR_DISK_ID recover vmfs datastore esxi 5