diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2010-01-27 16:12:05 -0600 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2010-03-22 17:32:06 -0500 |
commit | 8c24522b2ce48136d4eac0d1137685327bd3a212 (patch) | |
tree | ea17a38648a0a0dc017128db983a35d1291e4cf9 /etc | |
parent | d984c57aa084698488911d8a2ca94314666f685e (diff) | |
download | open-iscsi-8c24522b2ce48136d4eac0d1137685327bd3a212.tar.gz |
iscsid: have iscsid watch for new portals using sendtargets
This patch has iscsid do SendTargets to the addresses pointed to
discovery.daemon.sendtargets.addresses
iscsid.conf. It will do it every
discovery.daemon.sendtargets.poll_interval
seconds.
This is useful for setups where the target returns only the
valid portals and you want to log into all the portals returned.
If the target returns all portals, then this still works, but
it is a little loud when a login fails.
Notes:
- It will use the ifaces setup in /etc/iscsi/ifaces.
- For iscsi settings it will use the /etc/iscsi/iscsid.conf settings.
- It currently only logs into new targets. It does not remove old
ones. You have to run
iscsiadm -m session -r $SID -u
to remove stale sessions.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/iscsid.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/iscsid.conf b/etc/iscsid.conf index b0ac7c9..e3a13cb 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -29,6 +29,32 @@ # Default for upstream open-iscsi scripts (uncomment to activate). iscsid.startup = /sbin/iscsid +# If instead of doing discovery with iscsiadm and then logging +# into the targets stored in the node db, set the following value +# to have iscsid perform SendTargets discovery and log into all +# the portals found. +# +# This will use the ifaces that are set up when iscsid is started up. +# +# This value for this is a list of addresses and ports. The address and +# port should be separated by a comma. Each address port tuple should be +# separated by a space. The port is optional. If not set then the iSCSI +# default 3260 will be used. +# +# Example (first address has a port and the final two use the default 3260): +# discovery.daemon.sendtargets.addresses = 192.168.0.21,1234 192.168.1.20 192.168.10.10 +# +# By default iscsid will check the discovery addresses above every 30 +# seconds. To change this change the following value. poll_interval is +# in seconds, and 0 will instruct iscsid to not poll (will do discovery +# once then complete). +# +# discovery.daemon.sendtargets.poll_interval = 30 +# +# Note: This currently only logs into new portals. It does not +# log out of portals that are no longer returned from SendTargets. +# To remove them run "iscsiadm -m session -r $SID -u" + ############################# # NIC/HBA and driver settings |