I have a Quantum SuperLoader 3 plugged in via SAS to a CentOS 7 system. It shows in dmesg and lsscsi and is handled by the ch driver.
$ lsscsi
[0:2:0:0] disk LSI MR9271-8i 3.24 /dev/sda
[1:0:0:0] tape IBM ULTRIUM-HH6 E4J1 /dev/st0
[1:0:0:1] mediumx QUANTUM UHDL 0091 /dev/sch0
Here's the kernel initialization:
$ dmesg
[ 13.443589] scsi 1:0:0:0: Attached scsi generic sg2 type 1
[ 13.444091] scsi 1:0:0:1: Attached scsi generic sg3 type 8
[ 13.463023] SCSI Media Changer driver v0.25
[ 13.463121] st: Version 20101219, fixed bufsize 32768, s/g segs 256
[ 13.572514] ch0: type #1 (mt): 0x0+1 [medium transport]
[ 13.572516] ch0: type #2 (st): 0x100+16 [storage]
[ 13.572517] ch0: type #3 (ie): 0x0+0 [import/export]
[ 13.572518] ch0: type #4 (dt): 0x20+1 [data transfer]
[ 13.697117] ch0: dt 0x20: ch0: ID/LUN unknown
[ 13.697119] ch0: INITIALIZE ELEMENT STATUS, may take some time ...
[ 67.097903] ch0: ... finished
[ 67.097910] ch 1:0:0:1: Attached scsi changer ch0
[ 67.098792] st 1:0:0:0: Attached scsi tape st0
[ 67.098796] st 1:0:0:0: st0: try direct i/o: yes (alignment 4 B)
The tape drive operates normally using the mt-st package. I have also installed mtx for use with Bacula or Amanda, but mtx seems to expect a different driver than ch.
It appears there are certain tools for the ch driver, such as scsi-changer, but they do not appear to be commonly used and so I imagine there must be a way to get mtx to work with the ch driver directly.
When invoked the obvious way:
$ sudo mtx -f /dev/sch0 status
/dev/sch0 is not an sg device, or old sg driver
/dev/sch0 is:
$ ls -lastZ /dev/sch0
crw-rw----. root cdrom system_u:object_r:device_t:s0 /dev/sch0
I'm going to try using the kraxel.org SCSI changer, but given the lack of support within Amanda, any suggestions to solve the mtx issue would be a boon.