Home · Latest · Trends  /  general
0

Increase scsi timeouts in Linux

rated 0 times [  0] [ 0]  / comments: 0 / hits: 96  / 6 months ago, wed, dec 13, 2017, 10:17:43
You may need to increase scsi timeouts - here's how you'd do it.
# First, check your current settings and jot them down somewhere:
for a in /sys/class/scsi_generic/*/device/timeout; do echo -n "$a "; cat "$a" ; done;

# Here's how to increase the timeout across all devices to 180 seconds:
for i in /sys/class/scsi_generic/*/device/timeout; do echo 180 > "$i"; done

# After boot, that'll go away, so make it persistant:
echo 'for i in /sys/class/scsi_generic/*/device/timeout; do echo 180 > "$i"; done' >> /etc/rc.local

# Use this command again to check the values:
for a in /sys/class/scsi_generic/*/device/timeout; do echo -n "$a "; cat "$a" ; done;
More From » general
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Sponsor
Posted
rob

rob

Member since Feb 22, 2017
Total Code Snippets: 108
Total Comments: 1
Location: n/a
Following
User not following anyone yet.
rob snippets
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017
1 year ago, wed, feb 22, 2017