Call "HostStorageSystem.ComputeDiskPartitionInfo" for object "storageSystem" on ESXi failed

Written by Peter Davies on .

On an internal VMware server we have for development machines we increased storage using a spare disk, but shortly after rebooting we received the following error:
Call "HostStorageSystem.ComputeDiskPartitionInfo" for object "storageSystem" on ESXi "192.168.xxx.xxx" failed.
It appears from searching around that ESXi is not correctly wiping the disk when it says it does.

Step 1 is to enable SSH access through theESXi console so that you can remotely access the server using something like PuTTY.

Step 2: Now try and find the name of the local disk:

~ # esxcfg-scsidevs -l
mpx.vmhba1:C0:T0:L0
   Device Type: CD-ROM
   Size: 0 MB
   Display Name: Local LG CD-ROM (mpx.vmhba1:C0:T0:L0)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/cdrom/mpx.vmhba1:C0:T0:L0
   Devfs Path: /vmfs/devices/cdrom/mpx.vmhba1:C0:T0:L0
   Vendor: LG        Model: CD-ROM CRD-8521B  Revis: 1.03
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: true
   Is Local: true  Is SSD: false
   Other Names:
      vml.0005000000766d686261313a303a30
   VAAI Status: unsupported
t10.ATA_____ST31000520AS________________________________________9VX0JTG0
   Device Type: Direct-Access
   Size: 953869 MB
   Display Name: Local ATA Disk (t10.ATA_____ST31000520AS________________________________________9VX0JTG0)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____ST31000520AS________________________________________9VX0JTG0
   Devfs Path: /vmfs/devices/disks/t10.ATA_____ST31000520AS________________________________________9VX0JTG0
   Vendor: ATA       Model: ST31000520AS      Revis: CC32
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: false
   Is Local: true  Is SSD: false
   Other Names:
      vml.0100000000202020202020202020202020395658304a544730535433313030
   VAAI Status: unknown
t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875
   Device Type: Direct-Access
   Size: 238418 MB
   Display Name: Local ATA Disk (t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875
   Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875
   Vendor: ATA       Model: WDC WD2500JS-75N  Revis: 10.0
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: false
   Is Local: true  Is SSD: false
   Other Names:
      vml.0100000000202020202057442d574d414e4b36303239383735574443205744
   VAAI Status: unknown

Then you can see the partitions (the first line shows disk information rather than being the first partition):

 partedUtil get /dev/disks/t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875
30394 255 63 488281250
1 63 488281247 165 128

Now you should be able to delete the partition using:

partedUtil delete /dev/disks/t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875 1

You can double check its been deleted by running the partedUtil command again:

~ # partedUtil get /dev/disks/t10.ATA_____WDC_WD2500JS2D75NCB3__________________________WD2DWMANK6029875
30394 255 63 488281250

Now when you run the VSphere Client the disk should be successfully created: vSphere New Disk