Home · Latest · Trends  /  general
0

Increase scsi timeouts in Linux

rated 0 times [  0] [ 0]  / comments: 1 / hits: 388  / 2 yaers 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

0
Wonderful put up, very informative. I wonder why the other experts of this sector don’t understand this. You must continue your post. paint contractor Orlando
[#107] Thursday, June 20, 2019, 06:37:58
 
joshuaprice153
commented 2 months ago
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: 127
Total Comments: 1
Location: n/a
Following
User not following anyone yet.
rob snippets
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017