View unanswered posts | View active topics It is currently Tue May 21, 2013 3:06 pm



Reply to topic  [ 10 posts ] 
 FreeNAS iscsi implementation trouble 
Author Message

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post FreeNAS iscsi implementation trouble
I am working on changing my VM implentation from using FreeNAS as an external NFS datastore to a iSCSI drive. Using FreeNAS, i followed instructions to setup the hard drive as iSCSI and made it as far as adding the storage to vsphere. The SCSI drive is detected and can added, but when i click add storage, select the freenas drive, then click next, vsphere loads the current disk layout but errors out saying "Error during the configuration of the host. Failed to get disk partition information."

Most of the guides on how to implement iSCSI explain that the format type selection should be left as unknown, but since the format was previously UFS for the NFS setup i'm guessing that vsphere still sees the format as UFS. So I formatted the hard drive as ext3 as another user suggested with no luck. I got to the same place and errored out. Any other suggestions?


Mon Jun 14, 2010 3:25 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: FreeNAS iscsi implementation trouble
You might try creating the partition manually at the console with fdisk. Once you've created it (it'll be a type of fb) then you can format with vmkfstools.

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Mon Jun 14, 2010 7:43 pm
Profile

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post Re: FreeNAS iscsi implementation trouble
Thanks for the tip. I'm trying it right now, but as i'm trying to do the vmkfstools part I get the following:

How do i get around this?

My disk is partitioned as VMFS:
Code:
~ # fdisk /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________
Note: sector size is 4096 (not 512)

The number of cylinders for this disk is set to 15200.
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 /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 15200 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes

                                                                            Device Boot      Start         End      Blocks  Id System
/vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________p1             1     15200 976751488   fb  VMFS

Command (m for help):


here is the list of disks:
Code:
~ # fdisk /vmfs/devices/disks/
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:1
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:2
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:3
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:4
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:5
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:6
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:7
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:8
/vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________
/vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________:1
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:1
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:2
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:3
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:4
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:5
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:6
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:7
/vmfs/devices/disks/vml.010000000020202020202020202020202035514a3052414533535433313030:8
/vmfs/devices/disks/vml.020000000030000000eeafaaf9695343534920
/vmfs/devices/disks/vml.020000000030000000eeafaaf9695343534920:1


Code:
~ # vmkfstools -C vmfs3 -b 4m -S FreeNAS /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________
/vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________
/vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________:1
~ # vmkfstools -C vmfs3 -b 4m -S FreeNAS /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________:1
Creating vmfs3 file system on "t10.FreeBSD_iSCSI_DISK______10000001________________________:1" with blockSize 4194304 and volume label "FreeNAS".
Usage: vmkfstools -C vmfs3 /vmfs/devices/disks/vml... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/naa... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/mpx.vmhbaA:T:L:P
Error: No such file or directory
~ #


or


Code:
~ # vmkfstools -C vmfs3 -b 4m -S FreeNAS /vmfs/devices/disks/vml.020000000030000000eeafaaf9695343534920\:1
Creating vmfs3 file system on "vml.020000000030000000eeafaaf9695343534920:1" with blockSize 4194304 and volume label "FreeNAS".
Usage: vmkfstools -C vmfs3 /vmfs/devices/disks/vml... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/naa... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/mpx.vmhbaA:T:L:P
Error: No such file or directory
~ #


Tue Jun 15, 2010 11:19 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: FreeNAS iscsi implementation trouble
How have you made out with this?

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Jun 17, 2010 12:16 am
Profile

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post Re: FreeNAS iscsi implementation trouble
still stuck where i left off there


Thu Jun 17, 2010 8:36 am
Profile

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post Re: FreeNAS iscsi implementation trouble
still having the same issue. any suggestions?


Mon Jun 21, 2010 9:50 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: FreeNAS iscsi implementation trouble
What output do you get for esxcfg-scsidevs -c? On my test system I'm copying and pasting within a SSH session just to make sure I have the device name OK.
Code:
~ # esxcfg-scsidevs -c
Device UID                                                                  Device Type      Console Device                                                                                  Size      Multipath PluginDisplay Name
mpx.vmhba32:C0:T0:L0                                                        Direct-Access    /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0                                                        960MB     NMP     Local USB Direct-Access (mpx.vmhba32:C0:T0:L0)
naa.600605b0006647b012a0e95842fe4abe                                        Direct-Access    /vmfs/devices/disks/naa.600605b0006647b012a0e95842fe4abe                                        1429557MB NMP     Local INTEL Disk (naa.600605b0006647b012a0e95842fe4abe)
t10.ATA_____WDC_WD5000AAKS2D00YGA0________________________WD2DWCAS82901992  Direct-Access    /vmfs/devices/disks/t10.ATA_____WDC_WD5000AAKS2D00YGA0________________________WD2DWCAS82901992  476940MB  NMP     Local ATA Disk (t10.ATA_____WDC_WD5000AAKS2D00YGA0________________________WD2DWCAS82901992)
t10.F405E46494C454007345971403A4D263150345D245378736                        Direct-Access    /vmfs/devices/disks/t10.F405E46494C454007345971403A4D263150345D245378736                        8160MB    NMP     OPNFILER iSCSI Disk (t10.F405E46494C454007345971403A4D263150345D245378736)
t10.F405E46494C45400847395A644B6D2F61463E6D216650345                        Direct-Access    /vmfs/devices/disks/t10.F405E46494C45400847395A644B6D2F61463E6D216650345                        40928MB   NMP     OPNFILER iSCSI Disk (t10.F405E46494C45400847395A644B6D2F61463E6D216650345)




~ # vmkfstools -C vmfs3 -b 1m -S SCSI /vmfs/devices/disks/t10.F405E46494C45400847395A644B6D2F61463E6D216650345:1
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating vmfs3 file system on "t10.F405E46494C45400847395A644B6D2F61463E6D216650345:1" with blockSize 1048576 and volume label "SCSI".
Successfully created new volume: 4c22aee9-5c0d27a9-7be8-003048db6888


_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Wed Jun 23, 2010 6:38 pm
Profile

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post Re: FreeNAS iscsi implementation trouble
The only difference is I am using 4m block sizes because of the Tb hard drive and the need for large VM sizes.


Code:
~ # esxcfg-scsidevs -c
Device UID                                                                Device                                                                                                                                                              Type      Console Device                                                                                                                                                                                                                                             Size      Plugin  Display Name
t10.ATA_____ST31000340AS________________________________________5QJ0RAE3  Direct                                                                                                                                                             -Access    /vmfs/devices/disks/t10.ATA_____ST31000340AS_________________________                                                                                                                                                             _______________5QJ0RAE3  953869MB  NMP     Local ATA Disk (t10.ATA_____ST3100034                                                                                                                                                             0AS________________________________________5QJ0RAE3)
t10.FreeBSD_iSCSI_DISK______10000001________________________              Direct                                                                                                                                                             -Access    /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001_____________                                                                                                                                                             ___________              953869MB  NMP     FreeBSD iSCSI Disk (t10.FreeBSD_iSCSI                                                                                                                                                             _DISK______10000001________________________)
~ # esxcfg-scsidevs -c
Device UID                                                                Device Type      Console Device                                                                                Size      Plugin  Display Name
t10.ATA_____ST31000340AS________________________________________5QJ0RAE3  Direct-Access    /vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3  953869MB  NMP     Local ATA Disk (t10.ATA_____ST31000340AS________________________________________5QJ0RAE3)
t10.FreeBSD_iSCSI_DISK______10000001________________________              Direct-Access    /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________              953869MB  NMP     FreeBSD iSCSI Disk (t10.FreeBSD_iSCSI_DISK______10000001________________________)
~ # vmkfstools -C vmfs3 -b 4m -S SCSI /vm
/vmfs/       /vmimages/   /vmupgrade/
~ # vmkfstools -C vmfs3 -b 4m -S SCSI /vmfs/devices/disks/t10.
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3    /vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:6
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:1  /vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:7
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:2  /vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:8
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:3  /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:4  /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________:1
/vmfs/devices/disks/t10.ATA_____ST31000340AS________________________________________5QJ0RAE3:5
~ # vmkfstools -C vmfs3 -b 4m -S SCSI /vmfs/devices/disks/t10.FreeBSD_iSCSI_DISK______10000001________________________:1
Creating vmfs3 file system on "t10.FreeBSD_iSCSI_DISK______10000001________________________:1" with blockSize 4194304 and volume label "SCSI".
Usage: vmkfstools -C vmfs3 /vmfs/devices/disks/vml... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/naa... or,
       vmkfstools -C vmfs3 /vmfs/devices/disks/mpx.vmhbaA:T:L:P
Error: No such file or directory
~ #


Thu Jun 24, 2010 9:47 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: FreeNAS iscsi implementation trouble
Have you tried a 1 or 2 MB block size? This rings a bell now of a VMware forum thred in which the block size was an issue ( I don't recall the storage device being used).

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Jun 24, 2010 10:03 am
Profile

Joined: Fri Jun 11, 2010 1:26 pm
Posts: 7
Post Re: FreeNAS iscsi implementation trouble
ya, still the same issue

'error: no such file or drectory', maybe it is just a freenas issue. It looks like i can install openfiler on a USB stick, maybe i'll try that next.


Thu Jun 24, 2010 10:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.