I kept getting the error ‘Call “HostStorageSystem.ComputeDiskPartitionInfo” for object “storageSystem” on ESXi “HOSTNAME” failed’ when I attempted to create a datastore from an old hard drive I had laying around.
Turns out ESXi was failing to format the existing partitions and I had to manually delete the partitions first,
# esxcfg-scsidevs -l
this lists the disk devices, the device file will be /dev/disks/<NAME>
# partedUtil get /dev/disks/t10.ATA_…
this shows the partitions on the device
# partedUtil delete /dev/disks/t10.ATA_… 1
deletes partition 1