Help: iface problems

22 views
Skip to first unread message

Lee Amy

unread,
Dec 11, 2009, 12:24:44 AM12/11/09
to open-...@googlegroups.com
Hi all,

I got some problems when I set up iface. The initiator node has two
NIC eth0 is eth1. I set up eth0 to connect the router by browsing Web.
And eth1 will link to a disk array. In the default mode iscsi will log
in the target machine by using eth0 so I wanna change into eth1.

I followed steps by the doc Open-ISCSI provide. However, I doubt there
are some mistakes the doc may have. In the file /etc/iscsi/iface0 I
have added necessary information like
iface.transport_name = tcp
iface.hwaddress = XX:XX:XX:XX:XX:XX

But it seems useless. Because when I use command
iscsiadm -m iface
That doesn't show the iface0 just default and iser.

And One thing makes me confused, which file I REALLY need to set up
iface? Because the Open-ISCSI doc mentioned /etc/iscsi/ifaceX this
file, /etc/iscsi/ifaces file and even /etc/iscsi/ifaces/ifaceX this
file. Obviously file names and folder names cannot be the same. But
why it happen in this doc?

So I hope someone could show me a correct steps to set up ifaces. My
OS is Cent OS 5.4.

Thank you very much.

Best Regards,

Eric

Mike Christie

unread,
Dec 11, 2009, 2:29:29 AM12/11/09
to open-...@googlegroups.com
Lee Amy wrote:
> Hi all,
>
> I got some problems when I set up iface. The initiator node has two
> NIC eth0 is eth1. I set up eth0 to connect the router by browsing Web.
> And eth1 will link to a disk array. In the default mode iscsi will log
> in the target machine by using eth0 so I wanna change into eth1.
>
> I followed steps by the doc Open-ISCSI provide. However, I doubt there
> are some mistakes the doc may have. In the file /etc/iscsi/iface0 I

It should be in /etc/iscsi/ifaces

> have added necessary information like
> iface.transport_name = tcp
> iface.hwaddress = XX:XX:XX:XX:XX:XX
>
> But it seems useless. Because when I use command
> iscsiadm -m iface
> That doesn't show the iface0 just default and iser.
>
> And One thing makes me confused, which file I REALLY need to set up
> iface? Because the Open-ISCSI doc mentioned /etc/iscsi/ifaceX this

This should be fixed in newer docs.

Use iscsiadm in iface mode. It will take care of these types of issues
for you in the future.

Lee Amy

unread,
Dec 12, 2009, 7:11:26 AM12/12/09
to open-...@googlegroups.com
> --
>
> You received this message because you are subscribed to the Google Groups "open-iscsi" group.
> To post to this group, send email to open-...@googlegroups.com.
> To unsubscribe from this group, send email to open-iscsi+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
>
>
>
Thanks, Mike. Actually I notice that this file exists in
/var/lib/iscsi because I use iscsi-initiator-utils this open-iscsi
package.

Eric
Reply all
Reply to author
Forward
0 new messages