2012/6/26 Jens Gruentjes
<jens.gruentjes AT ebira DOT de>
boromir ~/tdtool # mtx -f /dev/sg4 status
RequestSense (0x03) failed
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Unit Attention
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 28
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
Mode sense (0x1A) for Page 0x1D failed
Storage Changer /dev/sg4:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = WOC4-03L4
Storage Element 1:Full :VolumeTag=WOC4-01L4
Storage Element 2:Full :VolumeTag=WOC4-02L4
Storage Element 3:Empty
Storage Element 4:Full :VolumeTag=WOC5-01L4
Storage Element 5:Full :VolumeTag=WOC5-02L4
Storage Element 6:Full :VolumeTag=WOC5-03L4
Storage Element 7:Full :VolumeTag=WOC1-01L4
Storage Element 8:Full :VolumeTag=WOC1-02L4
Check this out! 8 slots reported :)
boromir ~/tdtool # mtx -f /dev/sg4 status
Storage Changer /dev/sg4:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = WOC4-03L4
Storage Element 1:Full :VolumeTag=WOC4-01L4
Storage Element 2:Full :VolumeTag=WOC4-02L4
Storage Element 3:Empty
Storage Element 4:Full :VolumeTag=WOC5-01L4
Storage Element 5:Full :VolumeTag=WOC5-02L4
Storage Element 6:Full :VolumeTag=WOC5-03L4
Storage Element 7:Full :VolumeTag=WOC1-01L4
Wow, 7 slots again. Do you delete a last line? :) Just kidding.
The two commands were issued directly one after another because I
worried about the first responses of the changer (RequestSense (0x03)
failed ...).
Please, hard reset your changer (off/on), check all connections, check all firmware options which could disable one slot - cleaning slot, etc. Then check library status with mtx again. It should work. If not, check you HBA firmware and OS driver.
best regards