Home > VMware > VMware: Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "SERVERNAME" failed.

VMware: Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "SERVERNAME" failed.

After I placed two new 146 GB SAS hard disks to an ESXi 4.1 host, configured a new array, try to add a new datastore with my vSphere Client I received this warning:

Call “HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” for object “ha-datastoresystem” on ESXi “SERVERNAME” failed.


After reading VMwareKB 1008886 and following the instructions I solved the issue..




dd if=/dev/zero of="/vmfs/devices/disks/vml.0000000000766d686261313a313a30" bs=512 count=34 conv=notrunc


34+0 records in
34+0 records out


More information: VMware


Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.

More Posts - Website

Follow Me:

  1. Frank
    April 1st, 2012  (Quote) at 00:12  (Quote) | #1

    Thank you very much for your post. It helped me a lot.
    I have ESXi 5, I was adding a 500 gigs IDE drive and I got the error.
    I just did a “ls /vmfs/devices/disks/” from the shell to identify what was the vml I had to use.
    To find the vml I just ran the following command “partedUtil get /vmfs/devices/disks/VMLID” and I got an error with the VMLID corresponding to the new drive.
    After that, I just ran your “dd if=/dev/zero of=”/vmfs/devices/disks/VMLID” bs=512 count=34 conv=notrunc” and I was able to add the hard drive.

  2. Jake
    June 28th, 2012  (Quote) at 13:27  (Quote) | #2

    Guys you rock. I had been looking for some clear method to fix my drive and add it as another storage option on my ESXi 5 server. This worked perfectly. Thank you!

  3. Derek Jones
    August 9th, 2012  (Quote) at 10:28  (Quote) | #3

    Specifically fixes a GPT problem from old drives.
    Remove old partition and run your fix. Removes the latent GPT partition table that fdisk can not deal with. Awesome!

  4. August 10th, 2012  (Quote) at 09:48  (Quote) | #4

    Thanks guys đŸ™‚

  5. Muammar
    September 19th, 2012  (Quote) at 10:39  (Quote) | #5

    Awesome! U help me a lot!

  6. December 21st, 2012  (Quote) at 20:16  (Quote) | #6

    was very helpfull
    thank you man

  7. April 10th, 2013  (Quote) at 12:15  (Quote) | #7

    whatever it is, worked perfectly for me as well!


  8. Jackson
    August 8th, 2013  (Quote) at 09:48  (Quote) | #8

    It works for me! Thank you, folks!

  9. Rich
    September 14th, 2013  (Quote) at 08:24  (Quote) | #9

    Its great to find information what actually works – thank you!

    How I did it (ESXi 5.1) – a novice.

    Connect to ESXi host using Putty utility.

    Run command “cd /dev/disks”

    Run command “ls -l”

    Examine the output and find the relevant vml. section for the problem disk

    run command “dd if=/dev/zero of=”/vmfs/devices/disks/vml.01000000002020202020202020202020203556583132503847535433313030″ bs=512 count=34 conv=notrunc”

    The vml. section of the command identifies the disk, so my case the disk was

    Hope this helps.

  10. Serj K
    October 3rd, 2013  (Quote) at 16:54  (Quote) | #10

    Great work!
    You saved my time =) Thanks a lot !!!

  11. André
    January 16th, 2014  (Quote) at 18:15  (Quote) | #11

    This command causes the formatting of the HD? Because I need to add a Storage already a system installed, is it possible?

  12. JJS
    March 11th, 2014  (Quote) at 13:43  (Quote) | #12

    First time I’ve run into this problem, and your solution is the only one that worked for me. Closing ticket with VMware (they couldn’t figure out the problem)

    Much appreciated!


  13. June 27th, 2014  (Quote) at 09:16  (Quote) | #13

    You rocks !!!

  14. June 29th, 2014  (Quote) at 20:37  (Quote) | #14

    haha thanks!

  15. DCE
    November 24th, 2014  (Quote) at 22:19  (Quote) | #15

    Perfect solution! This is still applicable to ESXi5.5U2 with highly actual hardware. This tip is appreciated big time.

  16. February 25th, 2015  (Quote) at 00:02  (Quote) | #16

    It works for me. Thank you very much

  17. marta
    April 21st, 2015  (Quote) at 10:04  (Quote) | #17


    when I run the command I read only appears

  18. August 23rd, 2015  (Quote) at 02:37  (Quote) | #18

    Añadan el hdd con problemas a un sistema windows, usen el comando DISKPART para limpiar el disco añadido.
    ejemplo: si al listar el disco, es el disco 1
    Abrir linea de comandos (cmd) y ejecutar DISKPART
    Luego ir ejecutando:
    DISKPART> list disk
    DISKPART> select disk 1
    DISKPART> clean

    Luego añadan el disco limpiado al ESXi y listo, no habrĂ¡ inconvenientes de ser agregado como nuevo DATASTORE

  19. Jone
    February 13th, 2016  (Quote) at 22:41  (Quote) | #19

    Thanks you guys so much

  20. March 1st, 2017  (Quote) at 07:49  (Quote) | #20

    Thanks for the good writeup. It in fact was once a leisure
    account it. Look complex to far brought agreeable from you!
    However, how can we communicate?

  1. at | #1