Hello,

On open-iscsi, from April 2008 and on, when performing:
   /etc/init.d/open-iscsi start
a discovery is done in line 126:
   iscsiadm -m discovery -t st -p "$TARGET_ADDR" > /dev/null 2>&1
This line, and others, were added by Hannes Reinecke on Apr 09 2008.

The problem with this discovery is that it modifies old session parameters of 
the nodes.
two important session parameters change:
iface.transport_name = tcp (was iser after first discovery)
node.conn[0].startup = manual (was automatic after first discovery)

I do not understand why Hannes used exactly this kind of discovery.
when I replaced the original line with this one it solved the problem I had:
   iscsi_discovery $TARGET_ADDR > /dev/null 2>&1

does this change harm the original purpose of the discovery?
if it does please explain, otherwise I would like to suggest the patch below.
(maybe we can add something to the iscsi_discovery script to make up for it?)

Thank you, Amir.
----------------

The suse init.d file runs discovery via iscsiadm.
This causes changes in existing iscsi node parameters.
Using iscsi_discovery solves this problem.

Signed-off-by: Amir Mehler <[EMAIL PROTECTED]>
---
 etc/initd/initd.suse |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/etc/initd/initd.suse b/etc/initd/initd.suse
index 23bbac0..f25005a 100644
--- a/etc/initd/initd.suse
+++ b/etc/initd/initd.suse
@@ -123,7 +123,7 @@ iscsi_discover_all_targets()
 
        for TARGET_ADDR in $DISC_TARGETS; do
                echo -n "Attempting discovery on target at ${TARGET_ADDR}: "
-               iscsiadm -m discovery -t st -p "$TARGET_ADDR" > /dev/null 2>&1
+               iscsi_discovery $TARGET_ADDR > /dev/null 2>&1
                if [ "$?" -ne 0 ]; then
                        rc_failed 1
                        rc_status -v
-- 
1.5.4.1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to