ESXi: Use partedUtil – deletion of disk device partitions

VMware Logo

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:

PartitionGUIDType (Hex)Type (Decimal)
VMFS DatastoreAA31E02A400F11DB9590000C2911D1B80xFB251
VMKCore Diagnostic9D27538040AD11DBBF97000C2911D1B80xFC252
VMware Reserved9198EFFC31C011DB8F78000C2911D1B8  
Basic DataEBD0A0A2B9E5443387C068B6B72699C70x83131
Linux Swap0657FD6DA4AB43C484E50933C84B4F4F0x82130
Linux LVME6D6D379F50744C2A23C238F2A3DF9280x8E142
Linux RAIDA19D880F05FC4D3BA006743F0F84911E0xFD253
EFi SystemC12A7328F81F11D2BA4B00A0C93EC93B0xEF239
Microsoft ReservedE3C9E3160B5C4DB8817DF92DF00215AE  
Unused Entry00000000000000000000000000000000  
Fat16 0x66
Extended 0x55
SFS 0x4266
NTFS 0x77

Leave a Reply

Your email address will not be published. Required fields are marked *