On Nov 18, 2011, at 2:45 PM, Steve O'Brien wrote:
> I just got a new autoloader (Quantum Scalar i40) and I am having problems
> with it loading tapes. The drives are /dev/st1 and /dev/st2 and the changer
> is /dev/sg6 – output from lsscsi:
> [3:0:2:0] tape HP Ultrium 5-SCSI Z58Z /dev/st1
> [3:0:3:0] tape HP Ultrium 5-SCSI Z58Z /dev/st2
> [3:0:3:1] mediumx QUANTUM Scalar i40-i80 135G -
>
>
> Using MTX or bacula I cannot get it to mount a tape:
>
> mtx -f /dev/changer-sg6 status
> Storage Changer /dev/changer-sg6:2 Drives, 40 Slots ( 5 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
> Storage Element 1:Full :VolumeTag=000050
> Storage Element 2:Full :VolumeTag=000051
> Storage Element 3:Full :VolumeTag=000052
> Storage Element 4:Full :VolumeTag=000053
> Storage Element 5:Full :VolumeTag=000054
> Storage Element 6:Full :VolumeTag=000055
> Storage Element 7:Full :VolumeTag=000056
> Storage Element 8:Full :VolumeTag=000057
> Storage Element 9:Full :VolumeTag=000058
> Storage Element 10:Full :VolumeTag=000059
> Storage Element 11:Full :VolumeTag=000060
> Storage Element 12:Full :VolumeTag=000061
> Storage Element 13:Full :VolumeTag=000062
> Storage Element 14:Full :VolumeTag=000063
> Storage Element 15:Full :VolumeTag=000064
> Storage Element 16:Full :VolumeTag=000065
> Storage Element 17:Full :VolumeTag=000066
> Storage Element 18:Full :VolumeTag=000067
> Storage Element 19:Full :VolumeTag=000068
> Storage Element 20:Full :VolumeTag=000069
This is good. mtx can talk to the library.
Googling for: mtx Illegal Request
I found: http://adsm.org/lists/html/Bacula-users/2011-07/msg00084.html
You may be using the wrong device. That is, the wrong sg.
Try tapeinfo -f device (see the above URL for details).
In addition, this URL (my website) contains a detailed procedure for getting a
tape library up and running with mtx-changer (the Bacula script). It may be
useful.
>
> Trying to load drive 0:
> mtx -f /dev/changer-sg6 load 1 0
> mtx: Request Sense: Long Report=yes
> mtx: Request Sense: Valid Residual=no
> mtx: Request Sense: Error Code=70 (Current)
> mtx: Request Sense: Sense Key=Illegal Request
> mtx: Request Sense: FileMark=no
> mtx: Request Sense: EOM=no
> mtx: Request Sense: ILI=no
> mtx: Request Sense: Additional Sense Code = 3B
> mtx: Request Sense: Additional Sense Qualifier = A0
> mtx: Request Sense: Field in Error = 00
> mtx: Request Sense: BPV=no
> mtx: Request Sense: Error in CDB=no
> mtx: Request Sense: SKSV=yes
> mtx: Request Sense: Field Pointer = 18 00
> MOVE MEDIUM from Element Address 4096 to 256 Failed
Is the SCSI chain properly terminated? This is my standard question with tape
drive problems.
What version of mtx?
> Trying to load drive 1:
> mtx -f /dev/changer-sg6 load 1 1
> mtx: Request Sense: Long Report=yes
> mtx: Request Sense: Valid Residual=no
> mtx: Request Sense: Error Code=70 (Current)
> mtx: Request Sense: Sense Key=Illegal Request
> mtx: Request Sense: FileMark=no
> mtx: Request Sense: EOM=no
> mtx: Request Sense: ILI=no
> mtx: Request Sense: Additional Sense Code = 3B
> mtx: Request Sense: Additional Sense Qualifier = A0
> mtx: Request Sense: Field in Error = 00
> mtx: Request Sense: BPV=no
> mtx: Request Sense: Error in CDB=no
> mtx: Request Sense: SKSV=yes
> mtx: Request Sense: Field Pointer = 18 00
> MOVE MEDIUM from Element Address 4096 to 257 Failed
>
> From Bacula:
> *mount
> The defined Storage resources are:
> 1: Quantumi40
> 2: FileStorage
> Select Storage resource (1-2): 1
> Enter autochanger drive[0]: 1
> Enter autochanger slot: 1
> 3301 Issuing autochanger "loaded? drive 1" command.
> 3302 Autochanger "loaded? drive 1", result: nothing loaded.
> 3304 Issuing autochanger "load slot 1, drive 1" command.
> 3992 Bad autochanger "load slot 1, drive 1": ERR=Child died from signal 15:
> Termination.
> Results=Program killed by Bacula (timeout)
>
> 3301 Issuing autochanger "loaded? drive 1" command.
> 3302 Autochanger "loaded? drive 1", result: nothing loaded.
> 3901 Unable to open device "HP1" (/dev/nst1): ERR=dev.c:490 Unable to open
> device "HP1" (/dev/nst1): ERR=No medium found
>
>
> Any help would be appreciated,
I suggest ignoring Bacula until you get mtx working. That's the key issue.
--
Dan Langille - http://langille.org
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|