ESXi Issues

From Leo's Notes
Last edited on 24 February 2017, at 19:14.

Whenever you attempt to create a datastore, you are shown the following error:

Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "172.20.1.26" failed.

To fix this issue:

  1. SSH to the ESXi Server
  2. run fdisk /dev/disks/<device in question>
  3. delete any partitions that might exist using 'd'
  4. create a new parptition using 'o'
  5. Re-attempt to create the datastore in vSphere

Here is what I did with fdisk:

~ # fdisk /dev/disks/t10.ATA_____ST3500630NS_________________________________________5QG0D3KF

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***

Found valid GPT with protective MBR; using GPT


Command (m for help): d
Selected partition 1

Command (m for help): p
Disk /dev/disks/t10.ATA_____ST3500630NS_________________________________________5QG0D3KF: 976773168 sectors,  931M
Logical sector size: 512
Disk identifier (GUID): 9b87e6b5-3496-4faf-8eba-263c57d5e7c2
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 12684099550

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34      3171024896       3024M   0700
   2      3171026944      6342051840       3024M   0700
   3      6342053888      9513078784       3024M   0700
   4      9513080832     12684097536       3024M   0700
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/disks/t10.ATA_____ST3500630NS_________________________________________5QG0D3KF: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                                                               Device Boot      Start         End      Blocks  Id System

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
~ #