Got it

Setting iSCSI Timeout Parameters for a Linux Host

Latest reply: Oct 11, 2021 05:22:48 339 4 4 0 0

[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.

1_zh-cn_image_0000001123599241.png


Check the timeout parameters that take effect on a node.

1_zh-cn_image_0000001123480845.png

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.


Thanks for sharing
View more
  • x
  • convention:

A nice post. Thank you for sharing
View more
  • x
  • convention:

Good post, Thanks for sharing
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.