Hi all,
How can I attach an iscsi disk to an esx 3.0.1 server via command line?? I have tried via Virtualcenter using refresh option under storage without a result ... iSCSI device is a qlogic device ...
Many thanks.
Try this at the SC:
Enabling the iSCSI Adapter
1. Type the command:
esxcfg-swiscsi e
Allowing software iSCSI traffic through firewall...
Enabling software iSCSI...
/usr/sbin/vmkload_mod /usr/lib/vmware/vmkmod/iscsi_mod.o
Using /usr/lib/vmware/vmkmod/iscsi_mod.o
Setting the iSCSI Target IP with Discovery Mode
Note:
Remember the Software iSCSI adapter does NOT support static discovery
1. Type the command:
vmkiscsi-tool -D -a 192.168.2.210 vmhba40
Note:
-D sets the mode of Discovery, rather than static. a is used to add an
iSCSI Target, followed by IP address of iSCSI Device and the HBA that will
be used. vmkiscsi-tool is a powerful little utility with lots of options
although documentation is a little bit thin on the ground. I intend to return
to this section when I have more time to put some more flesh around it
2. To list the targets configured use:
vmkiscsi-tool -l -T vmhba40
Forcing a Rescan of the iSCSI Adapter
1. You might wish to list the current LUNs/Disk currently visible with
ls l /vmfs/devices/disks
2. Force the rescan with
esxcfg-swiscsi s
Note:
This should produce this result
Scanning vmhba40...
Rescanning vmhba40...done.
On scsi2, removing:.
On scsi2, adding: 0:0 0:1.
3. If we run the ls command again we can see the new lun
Message was edited by:
PSJ-V2S
iSCSI is enabled on this ESX host, actually I have 10 disks on it.
I have executed esxcfg-swiscsi -s without result ... Can I do another test?? iSCSI initiator is a QLA4022 card ...
On the iSCSI target (array), have you granted access to the ESX Server? Are you allowing access to the IQN or IP address of the ESX Server's Q-Logic HBA?
Paul
On the iSCSI target (array), have you granted access to the ESX Server?
Yes
Are you allowing access to the IQN or IP address of the ESX Server's Q-Logic HBA?
I am using IQN to grant access ... iSCSI product is SANMelody ...