Monday, February 28, 2011

ERROR: The disk is blank with ESXi Datastore creation

ERROR: The disk is blank with ESXi Datastore creation
Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "192.168.10.221" failed.

The other window underneath shows Location /vmfs/devices/disks/mpx.vmhba:3:C0:T0:L0  "The hard disk is blank."
This just happened to me when trying to create a new datastore on reconfigured RAID 10 array.

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

Disk is blank ! Well yes I just erased everything and initialized the new array.

So if you go on the Console or SSH in and run this command you get the ouput below.

# fdisk -l

Disk /dev/disks/naa.60019b90b36c760014f68e5892d35343: 999.1 GB, 999116767232 bytes
255 heads, 63 sectors/track, 121469 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/disks/naa.60019b90b36c760014f68e5892d35343 doesn't contain a valid partition table

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 2020 MB, 2020872192 bytes
64 heads, 32 sectors/track, 1927 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Notice no partition is present on the target disk.

So then you run this command
~ # fdisk -u /dev/disks/naa.60019b90b36c760014f68e5892d35343
Device contains neither a valid DOS partition table

This  prompts you to create a partition either extended or primary
you choose primary then label Partition 1
in my case I was using the entire disk so I chose the default sectors to use  MAX space on the disk.
Once done then run this again to check


Fdisk –l
Disk /dev/disks/naa.60019b90b36c760014f68e5892d35343: 999.1 GB, 999116767232 bytes
255 heads, 63 sectors/track, 121469 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                           Device Boot      Start         End      Blocks  Id System
/dev/disks/naa.60019b90b36c760014f68e5892d35343p1             1    121470 975699936+  83  Linux

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 2020 MB, 2020872192 bytes
64 heads, 32 sectors/track, 1927 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Notice the partition is there
Login to viclient and create your datastore!!!

5 comments:

  1. you rock dude. thanks for the help

    found this via google.

    ReplyDelete
  2. I tried the instructions above, but it didn´t help.
    Then i realize that my 1TB harddisk had a "GPT" boot record, so i booted Knoppix and used the tool "parted" to write a DOS bootrecord to the disk. - After that i could create the datastore with viclient.

    ReplyDelete
  3. Thanks mate, it would take me ages to realise a solution for such obvious problem.

    ReplyDelete
  4. Yes he is very right bcoz I've tried so many ways. All-in failed. I have read many comments result is the same The only suggestion to you. Make your disk fdisk on storge. and Do not format!!! never
    and try agian on vmware introduce
    best regard

    semih soykal

    ReplyDelete
  5. Hey mate, I have to saye, I like de post, me hard drive says not ptition, now me getting no respons from d drive. wokred like a champ, awsme pst!!!! wking now! thx!

    ReplyDelete