On Feb 18, 2013, at 1:43 AM, Jan Engelhardt <jeng...@inai.de> wrote:

> 
> iscsiadm(8) in open-iscsi-2.0.870 documents:
> 
> -t, --type=type
>   type must be sendtargets (or abbreviated as st), slp, isns or fw.
> 
> However, sendtargets and st seem to work differently, in that st
> autocreates an entry, while sendtargets does not. Their output is
> also different.
> 
> linux-d9i5:~ # iscsiadm -m discovery -t SendTargets -p 10.10.7.115

You know too much about the iSCSI spec :)

See the formatting you quoted from the man page. It works the same if you pass 
in "sendtargets" and not "SendTargets" like how it is described in the iSCSI 
pec. The code uses getopt_long which seems to check the case.



> iscsiadm: discovery record [10.10.7.115,3260] not found!
> linux-d9i5:~ # iscsiadm -m discovery -t st -p 10.10.7.115
> 10.10.7.115:3260,1 iqn.2003-01.org.linux-iscsi.rtsnode1.x8664:sn.c4678a837b19
> linux-d9i5:~ # iscsiadm -m discovery -t SendTargets -p 10.10.7.115

Because of the mixed case SendTargets is hitting the unknown discovery type 
code paths, and tries to look for discovery records with the ip passed in. The 
first time you ran the command there were none so it reported error. Here you 
did a successful discovery command above, so it printed the discovery record 
info. that was setup when you ran the successful discovery command.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to