Yes. In the current release:
http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/releases/open-iscsi-2.0-872.tar.gz
see section "7.2. Discover Targets" of the README for isns examples.
For static discovery it is called "Adding custom iSCSI portal" in the
README's 5.2 iscsiadm examples section.
No. It should work fine.
What target are you using?
Solaris's target should work ok with RHEL 5.5's initiator.
Are you using bidirectional or one way chap. Does the username/password
and username_in/passdword_in when you run:
iscsiadm -m node -T your_target -p ip:port
match what you are trying to use?
Are you using CHAP with discovery and with normal sessions or just
normal sessions? Make sure the discovery chap settings are set or the
normal session (these would be the node.*) chap settings are being set
correctly.
There are discovery.sendtargets.auth.* settings which is used for CHAP
during discovery sessions (sessions that are created so the initiatlr
can ask the target what target and portls it has - what happens when you
run iscsiadm -m discovery -t st -p ip:port). Then for sessions to the
target/portals we found during discovery or setup statically that we
access devices like disks through we have the node.session.auth.* values.
Initially when you do discovery the /etc/iscsi/iscsid.conf settings are
read in and used for discovery and for setting up the target/portal
records (when you see when you run iscsiadm -m node and iscsiadm -m node
-T target -p ip:port). If you want to change a specific target portals
settings in the db you can see them with
iscsiadm -m node -T target -p ip:port
then change them with
iscsiadm -m node -T target -p ip:port -o update -n
name-of-param-like-.node.session.auth.username -v yourname
or you can also just edit /etc/iscsi/iscsid.conf and rerun the discovery
command if you wanted to overwrite everything.
Maybe let me add: The more specific your question, the more specific the answer will be (most likely ;-))
Regards,
Ulrich
first of all,
target# iscsitadm list target
initiator# iscsiadm -m node -P 1
matches
second, here's the 4 relevant lines of
/etc/iscsi/iscsid.conf
node.startup = automatic
node.session.authmethod = CHAP
node.session.auth.username = <xxx>
node.session.auth.password = <xxx>
I can discover, but when I try to login
iscsiadm -m node -l
It failed
--------------------------
Sent from my BlackBerry Wireless Handheld
----- Original Message -----
From: Mike Christie <mich...@cs.wisc.edu>
To: Chien, Tom
Cc: open-...@googlegroups.com <open-...@googlegroups.com>
Sent: Tue Nov 02 19:04:25 2010
Subject: Re: Open iSCSI Discovery methods
I tried both unidirection and bidirection, with uni(target authenticates
initiator), only "username/password" are set, and with bi, the
"username_in/passdword_in" were also set, will check the match and reply
back
>>Are you using CHAP with discovery and with normal sessions or just
normal sessions? Make sure the discovery chap settings are set or the
normal session >>(these would be the node.*) chap settings are being set
correctly.
I've read both RFC's regarding iSCSI as well as the Open-iSCSI's README
file, don't think I know what you are talking about here...in the
"/etc/iscsi/iscsid.conf" file, there are more settings, maybe that's
what you are refering to, I'll check and reply back
Also, is the CHAP authnetication buggy? I've been unable to get it to
work...
-----Original Message-----
From: Mike Christie [mailto:mich...@cs.wisc.edu]
Sent: Tuesday, November 02, 2010 5:17 PM
To: open-...@googlegroups.com
Cc: Chien, Tom
Subject: Re: Open iSCSI Discovery methods
________________________________________
iscsiadm -m node -P 1 lists the targets and portals. You would want to
then do
iscsiadm -m node -T target -p ip:port
to see the settings being used for that target. If the setup is simple
then it is probably the same as in the iscsid.conf so you can ignore
this. In the future it might help though.
> matches
>
>
> second, here's the 4 relevant lines of
> /etc/iscsi/iscsid.conf
>
> node.startup = automatic
> node.session.authmethod = CHAP
> node.session.auth.username =<xxx>
> node.session.auth.password =<xxx>
>
> I can discover, but when I try to login
>
> iscsiadm -m node -l
>
Are you using the tools from RHEL 5.5? If so could you try this version
of the iscsi tools:
http://people.redhat.com/mchristi/iscsi/rhel5.6/iscsi-initiator-utils/
If those do not work can you send me a wireshark trace? And just to make
sure, on the target you are setting something like the Incoming
Username/password to the values that are in the
node.session.auth.username/node.session.auth.password, right? And the
username and password are different?