How to use ESXi partedUtil deletion of disk device partitions? If you came along the ESXi issue, unable of adding datastore (check fig.1 error), most likely your device disk is not entirely clean when it comes to partitions. In order to overcome this the easiest way is to use partedUtil, which is standard ESXi utility.
Create datastore in 5.5 error Call “HostStorageSystem.ComputeDiskPartitionInfo” for object “storageSystem” on ESXi “<IP>” failed.
~ # partedUtil get /vmfs/devices/disks/<diskname> 38913 255 63 625142448 1 63 58830029 131 128 2 58830030 625137344 15 0 8 58830156 61448624 130 0 5 61448688 202338674 7 0 6 202338744 407135294 7 0 7 407135360 625137344 7 0
partedUtil delete /vmfs/devices/disks/<diskname> 1
~ # partedUtil showGuids Partition Type GUID vmfs AA31E02A400F11DB9590000C2911D1B8 vmkDiagnostic 9D27538040AD11DBBF97000C2911D1B8 vsan 381CFCCC728811E092EE000C2911D0B2 VMware Reserved 9198EFFC31C011DB8F78000C2911D1B8 Basic Data EBD0A0A2B9E5443387C068B6B72699C7 Linux Swap 0657FD6DA4AB43C484E50933C84B4F4F Linux Lvm E6D6D379F50744C2A23C238F2A3DF928 Linux Raid A19D880F05FC4D3BA006743F0F84911E Efi System C12A7328F81F11D2BA4B00A0C93EC93B Microsoft Reserved E3C9E3160B5C4DB8817DF92DF00215AE Unused Entry 00000000000000000000000000000000
Partition Types
You may find useful the following table as it describes the partition types received from the parted Util get command:
Partition | GUID | Type (Hex) | Type (Decimal) |
VMFS Datastore | AA31E02A400F11DB9590000C2911D1B8 | 0xFB | 251 |
VMKCore Diagnostic | 9D27538040AD11DBBF97000C2911D1B8 | 0xFC | 252 |
VMware Reserved | 9198EFFC31C011DB8F78000C2911D1B8 | ||
Basic Data | EBD0A0A2B9E5443387C068B6B72699C7 | 0x83 | 131 |
Linux Swap | 0657FD6DA4AB43C484E50933C84B4F4F | 0x82 | 130 |
Linux LVM | E6D6D379F50744C2A23C238F2A3DF928 | 0x8E | 142 |
Linux RAID | A19D880F05FC4D3BA006743F0F84911E | 0xFD | 253 |
EFi System | C12A7328F81F11D2BA4B00A0C93EC93B | 0xEF | 239 |
Microsoft Reserved | E3C9E3160B5C4DB8817DF92DF00215AE | ||
Unused Entry | 00000000000000000000000000000000 | ||
Fat16 | 0x6 | 6 | |
Extended | 0x5 | 5 | |
SFS | 0x42 | 66 | |
NTFS | 0x7 | 7 |