ESXi installation failed with error "partedUtil failed with message: Error: The primary GPT table states that the backup GPT is located beyond the end of disk"

Sometimes installation of VmWare ESXi failed (between 5% and 8%) with the following error:

"partedUtil failed with message: Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. ... Error: Can't have a partition outside the disk! Unable to read partition table for device..."


ESXi installation failed with error "partedUtil failed with message: Error: The primary GPT table states that the backup GPT is located beyond the end of disk" (2)

This issue may occure if you just created RAID array and created logical disks (LUN), but didnt create any partitions and didn't format them. The most strange, that this error may happen when you created RAID10, and RAID5 array does not generate the error and ESXi installs normal.

Anyway, you should try the following solution: boot with any iso-image, where you can create partitions and format them. There just create any partition and format it. In my case I did this with Windows Server 2008 R2 installation image (mostly because I could load disk controller drivers there). 

After that ESXi installed without any errors.

Tags: vmware (en)

PrintEmail

Comments  

Vicious
# !!!!!!!!!!!Vicious 2016-06-13 14:20
you saved my day! Thanks a lot with this issue.
Reply | Reply with quote | Quote
sergio
# gdisk might be enoughsergio 2016-09-13 16:04
Thanks for your hint, I had the same problem on a DL360G5 with raid50 performed by P410 controller, several attemps to install vmware esxi 6.0 failed with the same error.

I booted then a live linux iso (deft8) and then used the command "gdisk" which reported an erroneus GPT, which was easy to fix using the following commands:

===============================

deft8 ~ % gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged

Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT

Your answer: 2

Command (? for help): p
Disk /dev/sda: 46883828912 sectors, 21.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): F9F7FE7D-3541-4078-91BE-DCBF41759FAC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 46883828878
Partitions will be aligned on 2048-sector boundaries
Total free space is 46883828845 sectors (21.8 TiB)

Number Start (sector) End (sector) Size Code Name

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
deft8 ~ %

===============================

No need to create a partition, after fixing the GPT the esxi installed without problems ;-)
Hope this helps others, too.
Reply | Reply with quote | Quote
Super User
# Nice solution tooSuper User 2016-09-14 08:24
Hi!

Thanks for another fix. I'm too bad in linux so I even didnt try this way.

I'm wondering, if ESXi distrib have built-in gdisk or some similar command...
Reply | Reply with quote | Quote
Torben Jespersen
# RE: ESXi installation failed with error "partedUtil failed with message: Error: The primary GPT table states that the backup GPT is located beyond the end of disk"Torben Jespersen 2016-11-09 13:11
Linux method worked like a charm for me! Thanks
Reply | Reply with quote | Quote

Add comment


Security code
Refresh