SUSE Support

Here When You Need Us

Permanent iSCSI disk timeouts on DataCore SANsymphony-V 9 using udev rules

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

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 1 (SLES 11 SP1)

Situation

This article will explain how to configure appropriate udev rules to set a certain iSCSI disk timeout for DataCore SANsymphony-v 9.

Resolution

Temporary:

To change the timeout use:
echo 80 > /sys/block/[disk_device]/device/timeout 
Keep in mind this setting will be lost upon next reboot.

Permanent:

Example udev rule for IBM 2145:

udev rules file cat /etc/udev/rules.d/99-ibm-2145.rules
# Set SCSI command timeout to 120s (default == 30 or 60) for IBM 2145 devices
SUBSYSTEM=="block", ACTION=="add", ENV{ID_VENDOR}=="IBM", ENV{ID_MODEL}=="2145", RUN+="/bin/sh -c 'echo 120 > /sys/block/%k/device/timeout'" 

To gather information on "ID_VENDOR" and "ID_MODEL" run a :

"udevadm info --query=all --attribute-walk --name=/dev/device" 

where "device" is the iSCSI disk.
Returned values for DataCore are:

ATTRS{vendor}=="DataCore" 
ATTRS{model}=="Virtual Disk"

Resulting in the following udev rule:

/etc/udev/rules.d/99-datacore.rules
ACTION=="add", SUBSYSTEM=="block", ATTRS{vendor}=="DataCore", ATTRS{model}=="Virtual Disk ", RUN+="/bin/sh -c 'echo 80 > /sys/block/%k/device/timeout'" 

Cause


Additional Information

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:7015055
  • Creation Date: 14-May-2014
  • Modified Date:03-Mar-2020
    • 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.