From 333f720ded74ab96281157d538e864682cbc5402 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sun, 11 Oct 2009 21:22:30 -0500 Subject: 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. --- README | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'README') 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. -- cgit v1.2.1