SUSE Support

Here When You Need Us

iscsid.conf timeout settings are not being honored

This document (7007358) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 1

Situation

MPIO iSCSI failover is taking two minutes even though the node.session.timeo.replacement_timeout parameter was changed from 120 to 5 in the iscsid.conf file
 

Resolution

The problem is a configuration issue.

Most iSCSI documentation indicates that the /etc/iscsid.conf should be modified to change timeout values, etc.  However, this is for global settings.  The "default" configuration file for each initiator is stored  under /etc/iscsi/nodes/<target name>/<portal> and overrides settings in the global configuration file.

Example:  MPIO iSCSI failover is taking two minutes even though the node.session.timeo.replacement_timeout parameter is set to 5 in the iscsid.conf file.

Solution:
Modify the "node.session.timeo.replacement_timeout" parameter in the default config file for each initiator.

The configuration file to modify is found under /etc/iscsi/nodes/<target name>/<portal>/default
where <target name> is the "iqn" value and "portal" is the IP,port value.

Example:
Initiating a directory listing on:
nts106:~ # ll /etc/iscsi/nodes/iqn.2010-12.lab\:test1/   <-- target name

We see the following two directories:
drw------- 2 root root 4096 2010-12-10 08:39  151.155.134.105,3260,1   <-- portal
drw------- 2 root root 4096 2010-12-10 08:40  192.168.10.1,3260,1      <-- portal

The default config file for each portal is found within its respective portal directory.  Notice that "node.session.timeo.replacement_timeout" is set to 120 here.  Change it to a lower value....like 5 or so.  Make sure to do it for all multipathed initiators/portals!

Additional Information

iscsiadm is very useful for troubleshooting iSCSI issues, especially if the Yast2 interface does not appear to be functioning correctly.

See man pages for iscsiadm for details.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7007358
  • Creation Date: 10-Dec-2010
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.