On Mon, Mar 08, 2010 at 02:08:43AM -0800, aclhkaclhk aclhkaclhk wrote:
> my server has eth0 (onboard), eth1 and eth2 (intel lan card). eth1 and
> eth2 are bonded as bond0
>
> i want to login iscsi target using bond0 instead of eth0.
>
> iscsiadm --mode node --targetname 192.168.123.1-vg0drbd-iscsi0 --
> portal 192.168.123.1:3260 --login --interface bond0
> iscsiadm: Could not read iface info for bond0.
>
> with interface, eth0 is used.
>
> the bonding was setup correctly. it could be used by xen.
>
You need to create the open-iscsi 'iface0' first, and bind it to 'bond0'.
Then you can login using 'iface0' interface.
Like this (on the fly):
# iscsiadm -m iface -I iface0 -o new
New interface iface0 added
# iscsiadm -m iface -I iface0 --op=update -n iface.net_ifacename -v bond0
iface0 updated.
You can set up this permanently in /var/lib/iscsi/ifaces/ directory,
by creating a file called 'iface0' with this content:
iface.iscsi_ifacename = iface0
iface.transport_name = tcp
iface.net_ifacename = bond0
Hopefully that helps.
-- Pasi
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.