Answer to self (sorry, could not find it anywhere but a friend reminded it 
to me):
Use '[ <ip> ]' , for example:

[root@lgdrm1109 ~]# iscsiadm -m discovery -t sendtargets -p 
[fd00:206:553::7]:3260
[fd00:206:553::3]:3260,1 iqn.2008-05.com.xtremio:001e679fa196
[fd00:205:553::3]:3260,1 iqn.2008-05.com.xtremio:001e679fa196
[fd00:206:553::4]:3260,1 iqn.2008-05.com.xtremio:001e679fa197
[fd00:205:553::4]:3260,1 iqn.2008-05.com.xtremio:001e679fa197
[fd00:206:553::7]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f6
[fd00:205:553::7]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f6
[fd00:206:553::8]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f7
[fd00:205:553::8]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f7

Y.

On Monday, March 9, 2015 at 2:29:43 PM UTC+2, [email protected] wrote:
>
> Not sure how this is supposed to work. Found as part of OpenStack testing, 
> but I don't think it's relevant:
>
> [root@lgdrm1110 cinder]# ping6 fd00:206:553::7
>
> PING fd00:206:553::7(fd00:206:553::7) 56 data bytes
>
> 64 bytes from fd00:206:553::7: icmp_seq=1 ttl=64 time=0.213 ms
>
> 64 bytes from fd00:206:553::7: icmp_seq=2 ttl=64 time=0.129 ms
>
> 64 bytes from fd00:206:553::7: icmp_seq=3 ttl=64 time=0.122 ms
>
> 64 bytes from fd00:206:553::7: icmp_seq=4 ttl=64 time=0.123 ms
>
> ^C
>
> --- fd00:206:553::7 ping statistics ---
>
> 4 packets transmitted, 4 received, 0% packet loss, time 2999ms
>
> rtt min/avg/max/mdev = 0.122/0.146/0.213/0.041 ms
>
> [root@lgdrm1110 cinder]# less /var/log/cinder/volume.log 
>
> [root@lgdrm1110 cinder]# iscsiadm -m discovery -t sendtargets -p 
> fd00:206:553::7:3260
>
> iscsiadm: cannot make connection to fd00:206:553::7:3260: No route to host
>
> iscsiadm: cannot make connection to fd00:206:553::7:3260: No route to host
>
> ^Ciscsiadm: caught SIGINT, exiting...
>
> [root@lgdrm1110 cinder]# iscsiadm -m discovery -t sendtargets -p 
> fd00:206:553::7
>
> [fd00:206:553::3]:3260,1 iqn.2008-05.com.xtremio:001e679fa196
>
> [fd00:205:553::3]:3260,1 iqn.2008-05.com.xtremio:001e679fa196
>
> [fd00:206:553::4]:3260,1 iqn.2008-05.com.xtremio:001e679fa197
>
> [fd00:205:553::4]:3260,1 iqn.2008-05.com.xtremio:001e679fa197
>
> [fd00:206:553::7]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f6
>
> [fd00:205:553::7]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f6
>
> [fd00:206:553::8]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f7
>
> [fd00:205:553::8]:3260,1 iqn.2008-05.com.xtremio:001e679fb5f7
>
>
>
> I think the use of -p <IP>:<port> is correct, but surely might fail in case 
> of IPv6.
>
>
> With debug level:
>
> [root@lgdrm1110 cinder]# iscsiadm -d 8 -m discovery -t sendtargets -p 
> fd00:206:553::7:3260
> iscsiadm: ip fd00:206:553::7:3260, port -1, tgpt -1
> iscsiadm: Max file limits 1024 4096
>
> iscsiadm: updating defaults from '/etc/iscsi/iscsid.conf'
> iscsiadm: updated 'discovery.sendtargets.iscsi.MaxRecvDataSegmentLength', 
> '32768' => '32768'
> iscsiadm: updated 'node.startup', 'manual' => 'automatic'
> iscsiadm: updated 'node.leading_login', 'No' => 'No'
> iscsiadm: updated 'node.session.timeo.replacement_timeout', '120' => '15'
> iscsiadm: updated 'node.conn[0].timeo.login_timeout', '30' => '15'
> iscsiadm: updated 'node.conn[0].timeo.logout_timeout', '15' => '15'
> iscsiadm: updated 'node.conn[0].timeo.noop_out_interval', '5' => '5'
> iscsiadm: updated 'node.conn[0].timeo.noop_out_timeout', '5' => '5'
> iscsiadm: updated 'node.session.err_timeo.abort_timeout', '15' => '15'
> iscsiadm: updated 'node.session.err_timeo.lu_reset_timeout', '30' => '30'
> iscsiadm: updated 'node.session.err_timeo.tgt_reset_timeout', '30' => '30'
> iscsiadm: updated 'node.session.initial_login_retry_max', '4' => '8'
> iscsiadm: updated 'node.session.cmds_max', '128' => '128'
> iscsiadm: updated 'node.session.queue_depth', '32' => '32'
> iscsiadm: updated 'node.session.xmit_thread_priority', '-20' => '-20'
> iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
> iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
> iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' => '262144'
> iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' => 
> '16776192'
> iscsiadm: updated 'node.conn[0].iscsi.MaxRecvDataSegmentLength', '262144' => 
> '262144'
> iscsiadm: updated 'node.conn[0].iscsi.MaxXmitDataSegmentLength', '0' => '0'
> iscsiadm: updated 'node.conn[0].iscsi.HeaderDigest', 'None' => 'None'
> iscsiadm: updated 'node.session.nr_sessions', '1' => '1'
> iscsiadm: updated 'node.session.iscsi.FastAbort', 'Yes' => 'Yes'
> iscsiadm: Looking for config file 
> /var/lib/iscsi/send_targets/fd00:206:553::7:3260,3260
>
> iscsiadm: Looking for config file 
> /var/lib/iscsi/send_targets/fd00:206:553::7:3260,3260 config st_config.
> iscsiadm: updated 'discovery.startup', 'manual' => 'manual'
> iscsiadm: updated 'discovery.type', 'sendtargets' => 'sendtargets'
> iscsiadm: updated 'discovery.sendtargets.address', '' => 
> 'fd00:206:553::7:3260'
> iscsiadm: updated 'discovery.sendtargets.port', '0' => '3260'
> iscsiadm: updated 'discovery.sendtargets.auth.authmethod', 'None' => 'None'
> iscsiadm: updated 'discovery.sendtargets.timeo.login_timeout', '15' => '15'
> iscsiadm: updated 'discovery.sendtargets.use_discoveryd', 'No' => 'No'
> iscsiadm: updated 'discovery.sendtargets.discoveryd_poll_inval', '30' => '30'
> iscsiadm: updated 'discovery.sendtargets.reopen_max', '5' => '5'
> iscsiadm: updated 'discovery.sendtargets.timeo.auth_timeout', '45' => '45'
> iscsiadm: updated 'discovery.sendtargets.timeo.active_timeout', '30' => '30'
> iscsiadm: updated 'discovery.sendtargets.iscsi.MaxRecvDataSegmentLength', 
> '32768' => '32768'
> iscsiadm: disc rec already exists
> iscsiadm: Looking for config file 
> /var/lib/iscsi/send_targets/fd00:206:553::7:3260,3260
>
> iscsiadm: starting sendtargets discovery, address fd00:206:553::7:3260:3260, 
> iscsiadm: in read_transports
> iscsiadm: Adding new transport tcp
> iscsiadm: Matched transport tcp
>
> iscsiadm: sysfs_attr_get_value: open '/class/iscsi_transport/tcp'/'handle'
>
> iscsiadm: sysfs_attr_get_value: new uncached attribute 
> '/sys/class/iscsi_transport/tcp/handle'
>
> iscsiadm: sysfs_attr_get_value: add to cache 
> '/sys/class/iscsi_transport/tcp/handle'
>
> iscsiadm: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/handle' 
> with attribute value '18446744072099758112'
>
> iscsiadm: sysfs_attr_get_value: open '/class/iscsi_transport/tcp'/'caps'
>
> iscsiadm: sysfs_attr_get_value: new uncached attribute 
> '/sys/class/iscsi_transport/tcp/caps'
>
> iscsiadm: sysfs_attr_get_value: add to cache 
> '/sys/class/iscsi_transport/tcp/caps'
>
> iscsiadm: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/caps' 
> with attribute value '0x39'
>
> iscsiadm: no authentication configured...
> iscsiadm: sendtargets discovery to fd00:206:553::7:3260:3260 using isid 
> 0x00023d000000
> iscsiadm: resolved fd00:206:553::7:3260 to fd00:206:553::7:3260
> iscsiadm: discovery timeouts: login 15, reopen_cnt 6, auth 45.
> iscsiadm: connecting to fd00:206:553::7:3260:3260
> iscsiadm: cannot make connection to fd00:206:553::7:3260: No route to host
> iscsiadm: discovery session to fd00:206:553::7:3260:3260 sleeping for 1 
> seconds before next login attempt
> iscsiadm: connecting to fd00:206:553::7:3260:3260
> iscsiadm: cannot make connection to fd00:206:553::7:3260: No route to host
> iscsiadm: discovery session to fd00:206:553::7:3260:3260 sleeping for 1 
> seconds before next login attempt
> iscsiadm: connecting to fd00:206:553::7:3260:3260
> iscsiadm: cannot make connection to fd00:206:553::7:3260: No route to host
> iscsiadm: discovery session to fd00:206:553::7:3260:3260 sleeping for 1 
> seconds before next login attempt
> iscsiadm: connecting to fd00:206:553::7:3260:3260
> ^Ciscsiadm: caught SIGINT, exiting...
> [root@lgdrm1110 cinder]# 
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to