I just tried this on my RHEL5.5 box and I couldn't reproduce this issue.

I think you are trying to hand create the iface files instead of letting 
iscsiadm create the iface file for you and probably the discover db is corrupted

I think it would be a good idea to delete the discovered node and the iface 
files and create the configuration as follows -

#iscsiadm -m node -o delete
#iscsiadm -m iface -I iface.eth1 -o delete
#iscsiadm -m iface -I iface.eth0 -o delete

/* Also check if the iface files still exist. If yes, then you may have to 
force delete the files.

#iscsiadm -m create -I iface -I iface.eth0 -o new
#iscsiadm -m create -I iface -I iface.eth0 -o update -n iface.hwadress -v 
<mac_address>

#iscsiadm -m create -I iface -I iface.eth1 -o new
#iscsiadm -m create -I iface -I iface.eth1 -o update -n iface.hwadress -v 
<mac_address>

#iscsiadm -m discovery -t st -p <ip> -I iface.eth0
#iscsiadm -m discovery -t st -p <ip> -I iface.eth0 -o new

This should work hopefully for you.

-Shyam


From: linux-poweredge-bounces-Lists On Behalf Of Jensas, Harald
Sent: Friday, December 10, 2010 10:37 AM
To: linux-poweredge-Lists
Subject: iSCSI - Could not match 
iface[hw=00:0C:29:44:44:21,ip=,net_if=,iscsi_if=iface.eth1] to host.

Hi,

I am running into an issue when trying to configure multipath connections to a 
iSCSI target in CentOS 5.5.
When I configure my interface files in /var/lib/iscsi/ifaces/ and try to do a 
discovery I am not getting multiple connections. Trying to do discovery using a 
specific interface results in iscsiadm giving the error:  "Could not match 
iface[hw=00:0C:29:44:44:17,ip=,net_if=,iscsi_if=iface.eth2] to host."


Anyone seen this before and know the solution?

Thanks!


Some info on my configuration:

[r...@localhost ifaces]# iscsiadm -m discovery --type sendtargets --portal 
10.100.100.5:3260 -d2 -I iface.eth1
iscsiadm: Max file limits 1024 1024

iscsiadm: Could not match 
iface[hw=00:0C:29:44:44:21,ip=,net_if=,iscsi_if=iface.eth1] to host.
iscsiadm: iface iface.eth1 is not valid. Will not bind node to it. Iface 
settings [hw=00:0C:29:44:44:21,ip=,net_if=,iscsi_if=iface.eth1]


[r...@localhost ifaces]# iscsiadm -m discovery --type sendtargets --portal 
10.100.100.5:3260 -d2 -I iface.eth2
iscsiadm: Max file limits 1024 1024

iscsiadm: Could not match 
iface[hw=00:0C:29:44:44:17,ip=,net_if=,iscsi_if=iface.eth2] to host.
iscsiadm: iface iface.eth2 is not valid. Will not bind node to it. Iface 
settings [hw=00:0C:29:44:44:17,ip=,net_if=,iscsi_if=iface.eth2]


[r...@localhost ifaces]# ifconfig

eth1      Link encap:Ethernet  HWaddr 00:0C:29:44:44:21
          inet addr:10.100.100.100  Bcast:10.100.100.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe44:4421/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:219 errors:0 dropped:0 overruns:0 frame:0
          TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:157118 (153.4 KiB)  TX bytes:26450 (25.8 KiB)
          Interrupt:75 Base address:0x2424

eth2      Link encap:Ethernet  HWaddr 00:0C:29:44:44:17
          inet addr:10.100.100.101  Bcast:10.100.100.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe44:4417/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6286 (6.1 KiB)  TX bytes:6094 (5.9 KiB)
          Interrupt:67 Base address:0x20a4


[r...@localhost ifaces]# cat iface.eth1
iface.hwaddress = 00:0C:29:44:44:21

[r...@localhost ifaces]# cat iface.eth2
iface.hwaddress = 00:0C:29:44:44:17



Best Regards
Harald Jensås



_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge@dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to