[Problem Description]
Setting iSCSI Timeout Parameters for a Linux Host
[Question Answer]
Check the timeout parameter that takes effect on the current node.
Run the iscsiadm -m node command to view all node records.

Check the timeout parameters that take effect on a node.

Modify the iSCSI timeout parameters.
For an established session, run the following command to update the value of your_new_value to the desired value. (You are advised to set your_new_value to 1 for Huawei UltraPath.)
iscsiadm -m node -o update -n node.session.timeo.replacement_timeout -v your_new_value
On the Linux host, the iSCSI configuration file is in the /etc/iscsi.conf or /etc/iscsi/iscsid.conf file. Go to the configuration file, find node.session.timeo.replacement_timeout, and change the value to 1. Save the modification and exit.
Restart the host.
After the active node is restarted, run the following command to check whether the parameters of the current node take effect (for example, x.x.x.x):
[root@localhost -]# iscsiadm -m node -p x.x.x.x
# BEGIN RECORD 2.0-871
node.name = iqn.2006-08.com.huawxxxxec:ocexxxxxce:21xxxxxxx10beb2a::x.x.x.x
node.tpgt = 1
node.startup = manual
............
node.session.timeo.replacement_timeout = 1
............
node.conn[0].timeo.noop_out_interval = 1
node.conn[0].timeo.noop_out_timeout = 1
node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
Check whether the parameter settings in the configuration file take effect.
[Applicable Scope]
iSCSI connection on a Linux host
Multipathing switchover reduces the I/O drop time.


