summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-10-11 21:22:30 -0500
committerMike Christie <michaelc@cs.wisc.edu>2009-10-11 21:22:30 -0500
commit333f720ded74ab96281157d538e864682cbc5402 (patch)
treebb501ab5d039bb745415dd61d24bba40b3614ab5 /README
parentce63c33527a2ec22d9df4eda8b9e71cc7d325b9c (diff)
downloadopen-iscsi-333f720ded74ab96281157d538e864682cbc5402.tar.gz
iscsiadm: fix discovery record use
iscsiadm is not using the discovery record settings. This has iscsiadm -m discovery -t st -p ip:port search for a discovery setting for ip:port. If found it will use those values for discovery. Previously it would always use the iscsid.conf settings. To change the discovery settings for a record you can do iscsiadm -m discovery -p ip:port -o update -n setting_name -v value like in node mode. Or you can completely remove the discovery record and targets found through it by doing iscsiadm -m discovery -p ip:port -o delete then run the discovery command which will then use the iscsid.conf values and create a new discovery record.
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 11 insertions, 7 deletions
diff --git a/README b/README
index 1f1d9fc..43a4569 100644
--- a/README
+++ b/README
@@ -186,11 +186,15 @@ Usage: iscsiadm [OPTION]
perform [type] discovery for target portal with
ip-address [ip] and port [port].
- By default this command will remove records
- for portals no longer returned. And, if a portal is
- returned by the target, then the discovery command
- will create a new record or modify an existing one
- with values from iscsi.conf and the command line.
+ By default this command will searh for a discovery
+ record for ip:port, and if found will use the
+ record's settings for discovery. If a record does
+ not exist iscsiadm will create one. It will then
+ remove records for portals no longer returned. And,
+ if a portal is returned by the target, then the
+ discovery command will create a new record or modify
+ an existing one with values from iscsi.conf and the
+ command line.
[op] can be passed in multiple times to this
command, and it will alter the DB manipulation.
@@ -200,8 +204,8 @@ Usage: iscsiadm [OPTION]
not yet have records in the db.
If [op] is passed in and the value is
- "update", iscsiadm will update records using info
- from iscsi.conf and the command line for portals
+ "update", iscsiadm will update node records using
+ info from iscsi.conf and the command line for portals
that are returned during discovery and have
a record in the db.