Hello
I have the following problem:
After installing VMware ESXi server I tried to create a datastore on a FreeNAS using iSCSI protocol.
1. The part of the storage itself was solved easily: I created software raid1 on FreeNAS, I have created the iSCSI target , etc..
2. Using the vCenter management console I added iSCSI Software Adapter ... and the IQN's, LUN's and all from the FreeNAS appeared.
3. When trying to add a DATASTORE I received the following error: ERROR DURING THE CONFIGURATION OF THE HOST: FAILED TO GET disk partition information ... after numerous retries, I went to ESXi ssh console.
4. fdisk -l showed the iSCSI device ... again with fdisk I created a partition on it (type 0xFB - VMFS), saved it and rebooted the esxi machine.
5. After the boot process, I tried to format the partition: vmkfstools -C vmfs3 /dev/disks/vml.02000000003000000065c05f6e695343534920:1
RESULT:
Vmfs3 Creating file system on "vml.02000000003000000065c05f6e695343534920:1" with blockSize 1048576 and Volume label "none".
/dev/disks/vml.02000000003000000065c05f6e695343534920: 1: Permission denied. (Have you set the partition type to 0xfb?)
Error: Permission denied
OK, I said ... maybe there is something wrong with my FreeNAS configuration, so I tried the same thing from Windows 7 PC ... and surprise!!!! I was able to create a new volume, format it NTFS, etc.
CONCLUSION: the problem is on the esxi side.
I'm sure that I'm missing something ... little help, please?
Thanks