Or using esxcli:
If partition table lost, recreate the VMFS partition (data intact): recover vmfs datastore esxi 6 5
Sometimes the VMFS partition table is deleted, but the data remains. You can use the partedUtil tool to fix this, but . Identify the disk: ls /vmfs/devices/disks/ Or using esxcli: If partition table lost, recreate
Check the partition status: partedUtil getptbl /vmfs/devices/disks/ recover vmfs datastore esxi 6 5