summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2010-03-22 17:28:41 -0500
committerMike Christie <michaelc@cs.wisc.edu>2010-03-22 17:28:41 -0500
commitad873767436f1cc242f0d4a522a2fce7133795c1 (patch)
treed2a245e1cf80db6bc88a767e9b5f82921147d586 /README
parent1b6a16b5df857e37d75379371aeaa30de6e0f769 (diff)
downloadopen-iscsi-ad873767436f1cc242f0d4a522a2fce7133795c1.tar.gz
iscsiadm: add nonpersistent mode to discovery mode
The default behavior for iscsiadm discovery mode is to store the portals found in the node DB. This adds a op "nonpersistent" to run iscsiadm discovery in a nonpersistent mode. In thos mode iscsiadm will not access the node DB. iscsiadm -m discovery -t st -p ip -o nonpersistent will just print out the portals found. icssiadm -m discovery -t st -p ip -o nonpersistent -l will print out the portals found and login. If this command is run to logout you must run in session mode. iscsiadm -m session -u would logout all the sessions.
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 13 insertions, 2 deletions
diff --git a/README b/README
index 43a4569..c2aa7fa 100644
--- a/README
+++ b/README
@@ -182,8 +182,8 @@ Usage: iscsiadm [OPTION]
-m, --mode <op> specify operational mode op = <discovery|node>
-m discovery --type=[type] --interface=iscsi_ifacename \
--portal=[ip:port] --login --print=[N] \
- --op=[op]=[NEW | UPDATE | DELETE]
- perform [type] discovery for target portal with
+ --op=[op]=[NEW | UPDATE | DELETE | NONPERSISTENT]
+ perform [type] discovery for target portal with
ip-address [ip] and port [port].
By default this command will searh for a discovery
@@ -213,6 +213,10 @@ Usage: iscsiadm [OPTION]
iscsiadm will delete records for portals that
were not returned during discovery.
+ If [op] is passed in and the value is
+ "nonpersistent" iscsiadm will not store
+ the portals found in the node DB.
+
See the example section for more info.
See below for how to setup iscsi ifaces for
@@ -592,6 +596,13 @@ To now log into targets it is the same as with sofware iscsi. See section
no longer returned. It will not change the record information for
existing portals.
+ - SendTargets iSCSI Discovery in nonpersistent mode:
+
+ ./iscsiadm -m discovery -t sendtargets -p 192.168.1.1:3260 \
+ -o nonpersistent
+
+ This command will perform discovery, but not manipulate the node DB.
+
- SendTargets iSCSI Discovery with a specific interface. If you
wish to only use a subset of the interfaces in /etc/iscsi/ifaces
then you can pass them in during discovery: