esxcfg-rescan vmhbaX # Replace X with your HBA number Or via vim-cmd :
partedUtil set /dev/disks/naa.YOUR_DISK_ID 1 128 <end_sector> FB 0 Then rescan and mount. If native tools fail, use a Linux VM with the corrupted disk attached (physical RDM or passthrough). recover vmfs datastore esxi 5
vim-cmd hostsvc/storage/refresh Unmount first: esxcfg-rescan vmhbaX # Replace X with your HBA
esxcfg-datastore -u "DatastoreName" Mount: recover vmfs datastore esxi 5
esxcfg-datastore -u "DatastoreName" Run check only (read-only):
esxcfg-datastore -l List VMFS volumes and their partitions:
partedUtil get /dev/disks/naa.YOUR_DISK_ID Look for VMFS partition type ( FB ). If partition table lost, recreate first partition starting at sector 128 (typical) or 2048 with VMFS type: