9.2. Setting the eh_deadline parameter
Configure the eh_deadline parameter to limit the maximum time allowed for SCSI error recovery. This ensures predictable I/O response times and prevents indefinite hangs, allowing applications to handle unresponsive storage with defined timeout limits.
Procedure
You can configure
eh_deadlineusing either of the following methods:defaultssection of themultpath.conffileFrom the defaults section of the
multpath.conffile, set theeh_deadlineparameter to the required number of seconds:# eh_deadline 300注意From RHEL 8.4, setting the
eh_deadlineparameter using the defaults section of themultpath.conffile is the preferred method.To turn off the
eh_deadlineparameter with this method, seteh_deadlinetooff.sysfsWrite the number of seconds into the
/sys/class/scsi_host/host<host-number>/eh_deadlinefiles. For example, to set theeh_deadlineparameter throughsysfson SCSI host 6:# echo 300 > /sys/class/scsi_host/host6/eh_deadlineTo turn off the
eh_deadlineparameter with this method, use echooff.Kernel parameter
Set a default value for all SCSI HBAs using the
scsi_mod.eh_deadlinekernel parameter.# echo 300 > /sys/module/scsi_mod/parameters/eh_deadlineTo turn off the
eh_deadlineparameter with this method, use echo-1.