From 364e6f8af405a9b7c6a23896a2da62bcbd92b5db Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sun, 20 Apr 2008 12:56:13 -0500 Subject: Add bind by initiatorname You can now setup the initiator to use multiple initiatornames which may come in handy for virtualization. To setup a iface with inames do: iscsiadm -m iface -o new -I iname0 iscsiadm -m iface -I iname0 -o update -n iface.initiatorname -v "your new name" Then you can bind and use the interface like you would before. QUIRK: Because you can pass in multiple ifaces to the discovery command we use the default initiator name in /etc/iscsi/initiatorname.iscsi for the discovery session. node.transport_name is no longer supported. In the next patches you will be able to use the default ifaces for these transports. Signed-off-by: Mike Christie --- etc/iface.example | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/iface.example b/etc/iface.example index 5587a73..b5751d8 100644 --- a/etc/iface.example +++ b/etc/iface.example @@ -4,22 +4,36 @@ # There must be a seperate iscsi interface config file for each NIC, network # interface or port or iscsi HBA you want to bind sessions to. # -# For hardware/offload iscsi, this is created for you when you run iscsiadm. +# For hardware iscsi, this is created for you when you run iscsiadm. # For software iscsi, you must define these files yourself. # +# REQUIRED: iface.transport_name +# # Set the iscsi transport/driver to use for the iface by setting # iface.transport_name # example: # iface.transport_name = tcp -# This values is required and valid values for iface.transport_name are: +# This value is required and valid values for iface.transport_name are: # - tcp (Software iSCSI over TCP/IP) # - iser (Software iSCSI over infinniband # - qla4xxx (Qlogic QLA4XXX HBAs) - - -# __One__ of the following values are required for the binding. +# +# +#OPTIONAL: iface.initiatorname +# To use a initiator name other than the one set in +# /etc/iscsi/initiatorname.iscsi for normal sessions set the +# iface.initiatorname. This is only used for normal sessions. +# For discovery sessions the /etc/iscsi/initiatorname.iscsi value +# is used. +# +# iface.initiatorname = iqn.2003-04.com.fedora:test +# +# +# REQUIRED: [iface.net_ifacename | iface.hwaddress] +# __One__ of the following values are required for binding a session +# to a specific nic/netdevice. # # To bind by network interface name (example: eth0, eth2:2, eth1.3) # set iface.net_ifacename -- cgit v1.2.1