On 03/16/2011 02:37 AM, Ulrich Windl wrote:
Hi!
I'm playing with the discovery database and authentication with SELES 11 SP1: I failed to change
values in existing discovery (sendtargets) records using "iscsiadm -m node -d 1 -p $p -o
update -o new -n var -v val": "iscsiadm: operation is not supported."
You cannot use -o new and -o new on a existing record in node mode. In
node mode -o new would create a new record. And in node mode -o update
would update a existing record.
If you just wanted to update an existing record you would do
iscsiadm -m node -d 1 -p $p -o update -n var -v val
So how would it work? Also, would it work for newly created entries as well?
Where would the settings from iscsid.conf be effective? (Some Internet docs
evenb say one must restart iscsid after changing the config file; true?)
The iscsid.conf settings are only used when you first do discovery and
during iscsid restart when a record is not found but there is a running
session.
- For discovery, the iscsid.conf settings are read in and then used to
create the initial records for the portals found.
- For the iscsid restart case (where you just killall iscsid then
restart it like what happens during boot), if a record cannot be found
for a running session, then the iscsid.conf values are used.
Can I change multiple variables in one call, i.e. "iscaiadm ... -n x -v y -n y -v z
..."?
No.
Note: Having read the iSCSI RFC on authentication, I'm not surprised that
people have a lot of trouble with it: They use different terms like: data
origin authentication, target to initiator, initiator to taget, initiator
authentication, target authentication, etc.
And the concrete example with CHAP uses placeholders for the actual parameter
exchange...
To Mike: I'd think it would be helpful if the debug messages from iscsiadm that show the parameter exchanges would use
a prefix of ">" for sent data, and use a prefix of"<" for received data. Currently the
prefix is always">", and you'll have to read the preceeding lines to find out the direction of trannsfer.
Especially for two-way auth with CHAP this can become confusing...
Ok, sounds good.
To Hannes: If I use "woman" in Emacs to read the iscsiadm manual page the top
line says:
"ISCSIADM(8) -- Sep 2006 -- Linux Administrator's Manual" (SLES 11 SP1 with all
updates)
The usual "man" doesn't display that, but I've founf the source in
iscsiadm.8.gz:
.TH ISCSIADM 8 "Sep 2006" "" "Linux Administrator's Manual"
I hope the manual page is newer than that ;-)
It probably is. I always forget to update the date in there and in the
README.
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.