iSCSI - Could not match iface[hw=00:0C:29:44:44:21,ip=,net_if=,iscsi_if=iface.eth1] to host.

Harald_Jensas at Dell.com Harald_Jensas at Dell.com
Tue Dec 14 04:51:32 CST 2010


Hi,

Thank you! This solved the problem, and yes I was following a how-to that edited the ifaces files manually. Worked much better when letting iscsiadm handle it.


Regards
Harald

From: Iyer, Shyam
Sent: den 10 december 2010 19:16
To: Jensas, Harald; linux-poweredge-Lists
Subject: RE: iSCSI - Could not match iface[hw=00:0C:29:44:44:21,ip=,net_if=,iscsi_if=iface.eth1] to host.

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:

[root at 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]


[root at 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]


[root at 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


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

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



Best Regards
Harald Jensås



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20101214/9a55458a/attachment-0001.htm 


More information about the Linux-PowerEdge mailing list