root@Charon:/home/amonra# mt -f /dev/st0 fsf 1
mt: /dev/st0: rmtioctl failed: Input/output error root
@Charon:/home/amonra#
root@Charon:/home/amonra# iscsiadm -m node --targetname "iqn.2008-08.com.starwindsoftware:mercury-ultrium2" --portal "192.168.129.77:3260" # BEGIN RECORD 2.0-873 node.name = iqn.2008-08.com.starwindsoftware:mercury-ultrium2 node.tpgt = -1 node.startup = manual node.leading_login = No iface.hwaddress = <empty> iface.ipaddress = <empty> iface.iscsi_ifacename = default iface.net_ifacename = <empty> iface.transport_name = tcp iface.initiatorname = <empty> iface.bootproto = <empty> iface.subnet_mask = <empty> iface.gateway = <empty> iface.ipv6_autocfg = <empty> iface.linklocal_autocfg = <empty> iface.router_autocfg = <empty> iface.ipv6_linklocal = <empty> iface.ipv6_router = <empty> iface.state = <empty> iface.vlan_id = 0 iface.vlan_priority = 0 iface.vlan_state = <empty> iface.iface_num = 0 iface.mtu = 0 iface.port = 0node.discovery_address = 192.168.129.77 node.discovery_port = 3260 node.discovery_type = send_targets node.session.initial_cmdsn = 0 node.session.initial_login_retry_max = 8 node.session.xmit_thread_priority = -20 node.session.cmds_max = 128 node.session.queue_depth = 32 node.session.nr_sessions = 1 node.session.auth.authmethod = None node.session.auth.username = <empty> node.session.auth.password = <empty> node.session.auth.username_in = <empty> node.session.auth.password_in = <empty> node.session.timeo.replacement_timeout = 120 node.session.err_timeo.abort_timeout = 15 node.session.err_timeo.lu_reset_timeout = 30 node.session.err_timeo.tgt_reset_timeout = 30 node.session.err_timeo.host_reset_timeout = 60 node.session.iscsi.FastAbort = Yes node.session.iscsi.InitialR2T = No node.session.iscsi.ImmediateData = Yes node.session.iscsi.FirstBurstLength = 262144 node.session.iscsi.MaxBurstLength = 16776192 node.session.iscsi.DefaultTime2Retain = 0 node.session.iscsi.DefaultTime2Wait = 2 node.session.iscsi.MaxConnections = 1 node.session.iscsi.MaxOutstandingR2T = 1 node.session.iscsi.ERL = 0 node.conn[0].address = 192.168.129.77 node.conn[0].port = 3260 node.conn[0].startup = manual node.conn[0].tcp.window_size = 524288 node.conn[0].tcp.type_of_service = 0 node.conn[0].timeo.logout_timeout = 15 node.conn[0].timeo.login_timeout = 15 node.conn[0].timeo.auth_timeout = 45 node.conn[0].timeo.noop_out_interval = 5 node.conn[0].timeo.noop_out_timeout = 5 node.conn[0].iscsi.MaxXmitDataSegmentLength = 0 node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144 node.conn[0].iscsi.HeaderDigest = None node.conn[0].iscsi.DataDigest = NoneThe return to the command prompt took a while longer. node.conn[0].iscsi.IFMarker = No node.conn[0].iscsi.OFMarker = No # END RECORD root@Charon:/home/amonra#
I'm guessing that the problem relates to iSCSI timeouts for tape devices. Please can you guide me in baby steps what I need to do to resolve this problem.
Thanks
Dave
Lee,
It would appear that the guilty party was:
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
I changed both of these to 0 for the tape device and the problem went away.
Please note that the README.gz for open-scsi doesn't actually say that this is what you need to do to disable the NOP-out polling, so could I suggest that this be stated explicitly.
For this setup, you can turn off iSCSI pings by setting:node.conn[0].timeo.noop_out_interval = 0node.conn[0].timeo.noop_out_timeout = 0
I must admit that I find it hard to imagine that an iSCSI target would reply to a NOP-out while it was processing a command such as a tape fsf or even tape erase (whose timeout is 6 * the long-timeout of 4 hours). Should perhaps the NOP-out polling be suspended while a command is being processed? Or alternatively maybe the NOP-out polling be completely disabled by default with something in the README.gz file that explains WHEN you might want it and how to enable it. It's certainly clear that (at least) the MS iSCSI initiator doesn't send NOP-out polls.
Regards
Dave
You’re right, it is in section 8.2. Maybe it needs to be said in 8.1.1 as well?
Dave
--
You received this message because you are subscribed to a topic in the Google Groups "open-iscsi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/open-iscsi/ViC-za8eHdc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to open-iscsi+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to open-iscsi+unsubscribe@googlegroups.com.
FWIW I still think the best solution is to suspend the NOP-Out polling (of active) while a device command is being processed. This way you get the best of both worlds
However I do see the attraction of a documentation only fix J
Cheers
Dave
From: open-...@googlegroups.com [mailto:open-...@googlegroups.com] On Behalf Of The Lee-Man
Sent: 22 December 2016 16:51
To: open-iscsi
Subject: Re: Problem with iSCSI connected LTO-2 tape drive
Hi David:
I have created Issue#35 for this on github.
On Thursday, December 15, 2016 at 2:00:15 PM UTC-8, David C. Partridge wrote:
You’re right, it is in section 8.2. Maybe it needs to be said in 8.1.1 as well?
Dave
To unsubscribe from this group and all its topics, send an email to open-iscsi+...@googlegroups.com.
To post to this group, send email to open-...@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "open-iscsi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/open-iscsi/ViC-za8eHdc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to open-iscsi+...@googlegroups.com.
On Dec 28, 2016, at 4:48 AM, David C. Partridge <david.p...@perdrix.co.uk> wrote:FWIW I still think the best solution is to suspend the NOP-Out polling (of active) while a device command is being processed. This way you get the best of both worldsHowever I do see the attraction of a documentation only fix J