I did a quick bit of Googling and I found this article which talks you through the steps required to fix this issue with ESX4.1. Part of the process uses fdisk. Fdisk is not available with ESXi5, you are forced to use partedUtil.
I tried various commands to try and fix the problem, but most of the commands returned me the following error:
/dev # partedUtil fix /vmfs/devices/disks/t10.ATA_____VB0250EAVER_____________________________9VMTB7GC____________
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. Fix, by writing backup table at the end? diskPath (/dev/disks/t10.ATA_____VB0250EAVER_____________________________9VMTB7GC____________) disk->dev->length (488397168) gpt->AlternateLBA (1465191167)
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
The command you need to use to fix this problem is mklabel, for example:
/dev # partedUtil mklabel /vmfs/devices/disks/t10.ATA_____VB0250EAVER_____________________________9VMTB7GC____________ gpt
Another VMworld is upon us!!! Sadly, it's only virtual again this year. However, that does…
As part of my recent move to Google, I'm working on quickly getting up to…
I am delighted to announce the next chapter in my career. Today is my first…
In episode thirteen of The VCDX Podcast, I am joined by two special guests who…
In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…
In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…
View Comments
Great post. Just spent a couple hours troubleshooting this and finally found this post. Worked great after running the "partedUtil mklabel" command. Thanks!!!
hihi, after several tried, it shows another error msg:
partedUtil mklabel /vmfs/devices/disks/t10.ATA_____WDC_WD1001FALS2D00J7B0________________________WD2DWMATV0384328 gptError: Read-only file system during write on /dev/disks/t10.ATA_____WDC_WD1001FALS2D00J7B0________________________WD2DWMATV0384328WriteNewPtable: Unable to commit to device /vmfs/devices/disks/t10.ATA_____WDC_WD1001FALS2D00J7B0________________________WD2DWMATV0384328
thank you very much for the post!
Thank you!
Helped us also! Thanks! VMware support coulnd't come up with any solution.
you the man!
THANKS!
THANKS!!! Spend hours trying to figure this out... this fixed it in 1 minute!!!
Thank you for this had me stumped!
Thanks a lot !!!
I used the below command :
partedUtil mklabel "/vmfs/devices/disks/mpx.vmhba3:C0:T1:L0" gpt