On Jun 30, 2009, at 5:21 AM, Tomas Carnecky wrote:

> On May 5, 6:21 pm, Mike Christie <micha...@cs.wisc.edu> wrote:
>> StorageSolutionGroup wrote:
>>> hi,
>>
>>> We are having IBM Storage and we are going  to implement IPv6 in our
>>> company. I have following doubts :
>>
>>> Does  iSCSI supports Internet Protocol version 6?
>>
>> The iSCSI spec should support ipv6.
>>
>> The open-iscsi tools support ipv6 with the exception they do not  
>> support
>> link local addresses yet.
>
> I've just run into an issue with ipv6 (related to link local
> addresses). I have a opensolaris server with an iscsi target (zfs
> volume) and open-iscsi installed on my linux laptop. The reply from
> the sendtarget request contains three IP addresses per target, like
> this:
>
> iscsiadm: finished reading text PDU, 48 hdr, 0 ah, 394 data, 2 pad
> iscsiadm: >    TargetName=iqn.1986-03.com.sun:02:ed055ac1-c5f6-c691-
> d832-ce78784b2c18
> iscsiadm: >    TargetAddress=192.168.0.80,1
> iscsiadm: >    TargetAddress=[fe80::xxxx:xxxx:xxxx:xxxx],1
> iscsiadm: >    TargetAddress=[2001:xxxx:xxxx::xxxx:xxxx:xxxx:xxxx],1
> iscsiadm: >    TargetName=iqn.1986-03.com.sun:02:0b45659b-
> a246-6c78-874c-e2cd8650c952
> iscsiadm: >    TargetAddress=192.168.0.80,1
> iscsiadm: >    TargetAddress=[fe80::xxxx:xxxx:xxxx:xxxx],1
> iscsiadm: >    TargetAddress=[2001:xxxx:xxxx::xxxx:xxxx:xxxx:xxxx],1
>
> iscsiadm parses the first address of the first target, but fails on
> the second target and aborts the whole operation. I have patched the
> source to simply skip the line when it can't add the target record and
> now it works fine.
>
> Why is it that getaddrinfo() can't parse link local addresses?
> iscsiadm: Cannot resolve host fe80::xxxx:xxxx:xxxx:xxxx. getaddrinfo
> error: [Servname not supported for ai_socktype]

Because link-local addresses are link local, and just copying the  
address, like e80::xxxx:xxxx:xxxx:xxxx, doesn't preserve information  
about which link is involved.

To really make these work, the code that receives the text PDU needs  
to be able to figure out if the TCP connection is link local. If it  
is, it needs to add enough info to the link-local address to set the  
scope. Otherwise it needs to ignore the address.

Take care,

Bill

--~--~---------~--~----~------------~-------~--~----~
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 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to