Also try:
If the partition table becomes corrupted—due to accidental overwriting, failed resizing operations, controller issues, or human error—the datastore becomes inaccessible, and all VMs hosted on it appear lost. The good news: In many cases, without data loss. recover vmfs partition table
On ESXi: