While working with my home vSphere 5.1 lab the other day, I was trying to create a VMFS5 datastores on my local SATA disk. Each time I tried to do that I was just welcomed with the following error:
Call “HostDatastoreSystem.CreateVmfsDatastore” for object “ha-datastoresystem” on ESXi “xxx.xxx.xxx.xxx” failed.
Please note xxx.xxx.xxx.xxx stand for my host IP. To visualize the error below is a screen shot of the error as it has appeared in my home lab
After fuzzing around trying to figure out what happened, I have remembered this particular disk was used by one of my old lab ESXi hosts. As I do all kind of crazy things in my labs, I thought I should try to wipe the disk clean then try to format it with VMFS5 afterward. That has actually solved the problem. This error seems to happen if you have a file system on that LUN/disk that ESXi does not understand, cannot overwrite or if You don’t have a full write access to the disk/LUN(ex: SRM replication target)
Below is how I went about doing it if you are not familiar with the procedure:
Note: In previous versions of ESXi fdisk was your friend in such a situation, though if you try it in vSphere 5.x you will get the following error message:
*** The fdisk command is deprecated: fdisk does not handle GPT partitions. Please use partedUtil ***
I am sure from the above error you got where I am going next, you will need to use partedUtil instead of fdisk to wipe that disk clean so you can use it. Alright, Alright, here is your one line magical command that will wipe that disk clean:
#PartedUtil mklabel /dev/disks/<disk id> msdos
Below is an example of how it looked like in my environment.
#partedUtil mklabel /dev/disks/t10.ATA____WDC_WD5000AK52000UU340___________WD2DWCAYU6597660 msdos
Alright in case you have wondered how did I figured out my disk id, all I had to do to get that info is to run the following command just as demonstrated in the previous screenshot:
#ls /dev/disks
After wiping the LUN/Disk clean, now you should be able to use it to create your new VMFS datastore by adding it through the vSphere client(business as usual). Hope this help someone out there!
8 responses to “Call “HostDatastoreSystem.CreateVmfsDatastore” for object “ha-datastoresystem” on ESXi “xxx.xxx.xxx.xxx” failed.”
Another Solution!!
Add the same volume as VMFS-3, this should be successful as the previous partition would be VMFS-5.
Once VMFS-3 is created, you can now delete the datastore to create a VMFS-5 datastore.
This worked for me.
I was able to re-part the disk to msdos. Didn’t fix my issues with Adaptec 6508e adapter and a jbod disk that gives me this message. I do have a mirrored set working with esxi 5.1 already on same controller so don’t now what gives. I will call adaptec today.
Also, you have a line of code: #PartedUtil mklabel /dev/disks/ msdos
the P in PartedUtil needs to be lower case.
You do have the command higher up in article correctly, just that one is incorrect.
Thanks for sharing.
I do have the same error but cannot affort loosing all my two year lab works. I am talking of all Exchange 5.5, 2003, 2007 and 2010, sharepoint, sccm, DNS-ADC-FileServer Infrastructures. I cannot sleep because of this error. It happened before and I was able to solved the problem going through my network connectivities. I had gateway router within another COMCAST ROUTER. I can reach the NAS and view all the VMachines, but cannot copy them becasue of VMware securities – access denied.
I cannot afford to wipe the NAS. I need some help please
Hi Franklin,
I would highly suggest you open a ticket with VMware Support (GSS), as they can login to the system with you and see what option you have to recover your VMs.
I am not sure I can help you much with only the information provided in the above comment as more info is required. I am not clear how you are currently trying to copy your VMs.
Thanks,
Eiad
Thank you Eiad Al-Aqqad,
I do appreciate your time to help me resolve this issue.
My setup is very simple. I had two Hosts on VMware labs with IomegaStorCenterix2 as datastore. All my 2 year labs and ISOs reside on this datastore. For some reason, I am not able to access this shared datastore as nfs – /nfs/datastore on. First I thought may be the IP address was changed. It did not because I configured it with static IP address.
Host1 – 192.168.10.103
Host2 – 192.168.10.104
vCenter- 192.168.10.111
Iomega – 192.168.10.107
The volume on Iomega was configured as NAS /nfs/VMDataStore
When I tried to troubleshoot the problem, I restarted the Hosts/Vcenters/IOmega. No resolution. I was able to open up the interface through my client – workstation, browse through all the vmachines.
I then removed the path and try to remap the nfs path again, but keeping on getting the same error I posted earlier. My guts told me it was not the permission issue or expiration of my vmware software.
Thanks again for your assistance
Hi Franlin,
What you are describing make me wonder if you are currently running ESXi 5.1U1. If so please check http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2076392
Another thing I was thinking off, being NFS as well lab environment could you not map those volumes to another Linux machines, & back them up that way?
Thanks Eiad, I will check this out when I get home and will let you know if this patch can fix the problem. As always, I sincerely appreciate your findings.
Thanks
It’s working well, Thank you Eiad Al-Aqqad so much,
Dangle