rescan causes offlined tape to reload

Alexander Motin mav at FreeBSD.org
Fri Jan 21 19:00:36 UTC 2011


G. Paul Ziemba wrote:
> mav at FreeBSD.org (Alexander Motin) writes:
> 
>> G. Paul Ziemba wrote:
> 
>>> # camcontrol rescan all
>>>
>>> Jan 20 21:08:40 hairball kernel: (probe4:sym0:0:4:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
>>> Jan 20 21:08:44 hairball kernel: (probe4:sym0:0:4:0): LOAD UNLOAD. CDB: 1b 0 0 0 3 0 
>>> Jan 20 21:09:34 hairball kernel: sym0:4:control msgout: 80 6.
>>> Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
>>> Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): INQUIRY. CDB: 12 0 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): INQUIRY. CDB: 12 1 0 0 ff 0 
>>> Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): INQUIRY. CDB: 12 1 80 0 ff 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:1): INQUIRY. CDB: 12 20 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:2): INQUIRY. CDB: 12 40 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:3): INQUIRY. CDB: 12 60 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:4): INQUIRY. CDB: 12 80 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:5): INQUIRY. CDB: 12 a0 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:6): INQUIRY. CDB: 12 c0 0 0 24 0 
>>> Jan 20 21:09:34 hairball kernel: (probe0:sym0:0:4:7): INQUIRY. CDB: 12 e0 0 0 24 0 
> 
>> For the full picture it would be nice to see responses device sent. I
>> suppose that in response to TUR device returns some status that implies
>> tray closing/load.
> 
> Yes, it would be useful/interesting to see the responses. I didn't
> see a way to cause the responses to be logged - is there a tool/flag
> to do it?

Try set debug.bootverbose sysctl or boot with verbose kernel messages.
Not sure about sense data, but it should give some more info. Proposed
by Kenneth `camcontrol tur sa0 -v` should also help probably.

-- 
Alexander Motin


More information about the freebsd-scsi mailing list