On 16 June 2010 05:31, Mike Christie <[email protected]> wrote:
> On 06/14/2010 08:52 AM, Michal Suchanek wrote:
>>
>> On 13 June 2010 21:01, Mike Christie<[email protected]>  wrote:
>>>
>>> On 06/12/2010 06:31 AM, Michal Suchanek wrote:
>>>>
>>>> Hello
>>>>
>>>> I tried to get an iscsi setup working so I installed iscsitarget and
>>>> open-iscsi and tried to export a file as an iSCSI lun.
>>>>
>>>> After doing so I could log in with iscsiadm but I would not get any
>>>> disks on the initiator.
>>>>
>>>> Later I discovered that I had a typo in the ietd.conf file and the lun
>>>> was simply not exported giving a target with no luns available for the
>>>> initiator.
>>>>
>>>> While it is true that the error is logged in kernel logs on the target
>>>> machine I could not find any way to list the available luns on the
>>>
>>> iscsiadm -m session -P 3
>>>
>> Thanks, this command does print the luns if there are any.
>>
>> However, it is not obvious from the documentation that it should print
>> these nor is it obvious from the output that there some part missing
>> when no luns are available.
>
> In the README I will add more info on how -P X works for session mode.
>
>
>>
>> It also does not work when I just add -P 3 to the discovery and node
>> commands which I use to log into the target and there is no obvious
>> reason why it should not.
>>
>
> Discovery mode just finds targets and portals. It has nothing to do with LUN
> discovery normally. And the node mode commands that print out the node db
> info also just prints the target and portal info, because it is only
> concerned with the targets.
>
> If for discovery and node mode, you are logging into the target (using the
> --login command) then I can print out the LUNs found if that is what you are
> asking for. But normally with the discovery and node mode commands that use
> the -P operator we are just working on the targets and portals and have not
> logged into the target so we do not know if there are LUNs.
>

The thing is that it is not documented what the -P option actually does.

Apparently it slightly changes the output format of discover and node
modes when nonzero but prints gobs of information in session mode when
nonzero and even more when it is 2 or3.

So I would really appreciate a short note in the man page what value
of P selects what information in what mode like:

When non-zero the output in discovery, node or session mode is printed
in tree-like format. In session mode 1 prints interfaces 2 also prints
parameters and 3 also prints devices.

Thanks

Michal

-- 
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.

Reply via email to