equivalent of Linux dev loss timeout?

Edward Tomasz Napierała trasz at FreeBSD.org
Thu Sep 11 22:07:31 UTC 2014


On 0910T1243, Chuck Tuffli wrote:
> Linux SCSI initiator drivers have the ability to send transport events
> (e.g. link up/down) to a module that handles reporting and removing
> devices from the system. By setting a "dev loss timeout", users can
> specify how long a device can be missing before it is removed from the
> system.
> 
> As one example of how this is used, enthusiastic testers can run IO to
> a device, yank out the cable between the initiator and the device for
> less than dev loss timeout seconds, and then watch as the IO's resume
> after the cable is reinserted.
> 
> Does anything like this exist in CAM or would it be up to each SIM to
> implement this behavior?

Not strictly a timeout, but if you're looking for a way to "suspend"
all IO operations to a disk device when it disappears, and reexecute
them when it's connected back, in a transparent way, then gmountver
might do the trick.



More information about the freebsd-scsi mailing list