diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-04-20 12:56:13 -0500 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2008-04-20 14:38:15 -0500 |
commit | 364e6f8af405a9b7c6a23896a2da62bcbd92b5db (patch) | |
tree | fdb94a90f4d70ba6499d7d9c12e9956a69c5f1df /etc/iface.example | |
parent | 568fcf80fd716b5a4ee6f5860ec9b30c9937f0f9 (diff) | |
download | open-iscsi-364e6f8af405a9b7c6a23896a2da62bcbd92b5db.tar.gz |
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 <michaelc@cs.wisc.edu>
Diffstat (limited to 'etc/iface.example')
-rw-r--r-- | etc/iface.example | 24 |
1 files changed, 19 insertions, 5 deletions
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 |