Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#917 closed patch (fixed)

20s timeout is too short for large JBODs

Reported by: asomers Owned by:
Priority: minor Milestone: Release 6.6
Component: all Version: 6.5
Keywords: scsi Cc:


Most smartctl commands have a default timeout of 20 seconds. This is sufficiently long for pretty much any disk to spin up from standby. However, many large JBODs implement staggered spinup, where they limit the number of drives that can simultaneously spin up. On such systems, it may take considerably longer for all drives to spin up. For example, I have a 96-drive JBOD where spinning up all drives takes nearly 45 seconds. The attached patch fixes smartctl for me.

Attachments (1)

patch-scsicmds.h (562 bytes ) - added by asomers 7 years ago.
Increase default timeout from 20s to 60s

Download all attachments as: .zip

Change History (4)

by asomers, 7 years ago

Attachment: patch-scsicmds.h added

Increase default timeout from 20s to 60s

comment:1 by Alex Samorukov, 7 years ago

I think it is fine. Moreover, in some code controller-specific this value is not respected and 60s is hardcoded. I will commit it

comment:2 by Alex Samorukov, 7 years ago

Component: smartctlall
Keywords: scsi added
Milestone: Release 6.6
Resolution: fixed
Status: newclosed

Thank you for the patch, fixed in r4557

comment:3 by asomers, 7 years ago

Thanks, that was fast!

Note: See TracTickets for help on using tickets.