I'm trying to script software iscsi, however when I use the following command : vmkiscsi-tool vmhba40 -D -a 10.42.10.131:3260
I receive the following error:
Found no Phba's
Could not find valid OIDs for adapter vmhba40
It would appear from the error the command is assuming I have an HBA in my server ?
vmhba40 is the software iscsi adapter that vmware uses go into configuration and storage adapters in VI to see it
Yep thats what Im trying to configure software iscsi
Yeah I have tired that command style as well, same error message.
Yes esxcfg-swiscsi e has been run first.
There doesn't appear to be much documentation on this anywhere?
hi,
i got it working in my scripted installation with these commands
\- make sure you have a working vmkernel...
1) open the firewall
esxcfg-firewall --enableService swISCSIClient
2) enable swiscsi
esxcfg-swiscsi -e
3)set an iscsi-name (with your specific iqn name)
vimsh -n -e "hostsvc/storage/iscsi_set_name vmhba40 iqn.2000-04.com.qlogic:esx01.domain.com"
4) if you use chap then enable it like this...
vimsh -n -e "hostsvc/storage/iscsi_enable_chap vmhba40 login_chap chap_password"
5) enter your targets
vmkiscsi-tool vmhba40 -D -a 172.22.4.18:3260
vmkiscsi-tool vmhba40 -D -a 172.22.4.11:3260
6) do a rescan
esxcfg-swiscsi -s
7) another rescan (don't know if this have to..)
esxcfg-rescan vmhba40
😎 enable all changes in the viclient
service mgmt-vmware restart
(and last.. if it's possible reboot.. this should enable everything and get it working...)
hope this helps..
Tom
Tom thanks I will test this out now.
Works a treat, had the order around the wrong way thanks.
thx.. nice to know it works
hi,
i got it working in my scripted installation with
these commands
>...........................................
hope this helps..
Tom
All commands was executed normal. But no new LUNs find.
*******************************************************************************
Cisco iSCSI Driver Version ... 3.4.2 (16-Feb-2004 )
*******************************************************************************
TARGET NAME : iqn.2001-04.com.bifit:serv4.storage.test-30g
TARGET ALIAS :
HOST NO : 3
BUS NO : 0
TARGET ID : 2
TARGET ADDRESS : 192.168.0.25:3260
SESSION STATUS : NOT ESTABLISHED
NO. OF PORTALS : 1
PORTAL ADDRESS 1 : 192.168.0.25:3260,1
SESSION ID : ISID 00023d000001 TSID 00
*******************************************************************************
TARGET NAME : iqn.2001-04.com.bifit:serv4.storage.test-sdb4
TARGET ALIAS :
HOST NO : 3
BUS NO : 0
TARGET ID : 3
TARGET ADDRESS : 192.168.0.25:3260
SESSION STATUS : NOT ESTABLISHED
NO. OF PORTALS : 1
PORTAL ADDRESS 1 : 192.168.0.25:3260,1
SESSION ID : ISID 00023d000001 TSID 00
*******************************************************************************
How to mount new targets?