For scsi_reset, you can write a simple C program and use USCSI ioctls to request a reset for reset target/lun/bus by set USCSI_RESET/USCSI_RESET_TARGET/USCSI_RESET_LUN flag etc. Detail please refer to uscsi(7I).
For scsi_abort, no easy way to do that except you use debug version sd driver. you can use private ioctl() interface- DKIOCABORT to do that. There is a similar private ioctl DKIOCRESET of debug version sd driver can call into scsi_reset as well. In general, solaris scsi pkt timeout value is 60 seconds, but sometimes, for special storage, solaris scsi_vhci would adjust it to 144 seconds. Javen ram vegesna wrote: > Hi, > > Can any one help me on how to get a scenario where TMF is called > by initiator with scsi_reset or scsi_abort ?(scsi mid layer) > > I tried with the link down on the target side and waited for 2-3 > minutes and still I did see any scsi_reset or scsi_abort is called. > > What are the timeout values in Solaris? (ldto,eto) > > Please let me know if you have any info. > > Thanks, > Ram > > > ------------------------------------------------------------------------ > > _______________________________________________ > driver-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/driver-discuss > _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
