Categories: Gestalt ITVMware

ESXi5: Call fails for “HostDatastoreSystem.QueryVmfsDatastore- CreateOptions” for object “ha-datastoresystem”

 When trying to format my local disk on my new ESXi5 host I recieved the error captured in the screenshot. The error give is: Call fails for “HostDatastoreSystem.QueryVmfsDatastore- CreateOptions” for object “ha-datastoresystem” 

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

After you have run this command, head back into the vSphere client and try and format the disk again. Hopefully you should now be successful.
Simon Long

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

  • Thanks a lot !!!
    I used the below command :
    partedUtil mklabel "/vmfs/devices/disks/mpx.vmhba3:C0:T1:L0" gpt

Share
Published by
Simon Long
Tags: esxi5

Recent Posts

Google Cloud VMware Engine @ VMworld 2021

Another VMworld is upon us!!! Sadly, it's only virtual again this year. However, that does…

3 years ago

Google Cloud VMware Engine – Learning Resources

As part of my recent move to Google, I'm working on quickly getting up to…

3 years ago

Hey Google!

I am delighted to announce the next chapter in my career. Today is my first…

3 years ago

EP13 – Defending Remotely

In episode thirteen of The VCDX Podcast, I am joined by two special guests who…

3 years ago

Getting Started With Oracle Cloud VMware Solution (OCVS) – Migrating Workloads Using VMware HCX

In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…

3 years ago

Getting Started With Oracle Cloud VMware Solution (OCVS) – Connecting To An On-Premises Environment

In my recent ‘Getting started with Oracle Cloud VMware Solution (OVCS)’ post; Getting Started With…

3 years ago