From ad873767436f1cc242f0d4a522a2fce7133795c1 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Mon, 22 Mar 2010 17:28:41 -0500 Subject: 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. --- README | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index 43a4569..c2aa7fa 100644 --- a/README +++ b/README @@ -182,8 +182,8 @@ Usage: iscsiadm [OPTION] -m, --mode specify operational mode op = -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: -- cgit v1.2.1