On 16 Feb 2006 at 16:57, Danny Butroyd wrote:

> Dan Langille wrote:
> > Anyone using FreeBSD 6 with an autochanger?
> >
> > Are you using chio or mtx?
> >
> > I'm find that mtx has a problem:
> >
> > # mtx -f /dev/ch0 list
> > cannot open SCSI device '/dev/ch0' - Inappropriate ioctl for device
> >   
> hmmm, does the same for me.  Strange thing is that I use the
> /usr/local/sbin/mtx-changer in my bacula-sd.conf which uses the mtx
> script!!  Also, it looks like the correct usage is "inquiry":-
> ------snip----
> Usage:
>   mtx --version
>   mtx [ -f <loader-dev> ] noattach <more commands>
>   mtx [ -f <loader-dev> ] inquiry | inventory
>   mtx [ -f <loader-dev> ] [nobarcode] status
>   mtx [ -f <loader-dev> ] first [<drive#>]
>   mtx [ -f <loader-dev> ] last [<drive#>]
>   mtx [ -f <loader-dev> ] next [<drive#>]
>   mtx [ -f <loader-dev> ] previous [<drive#>]
>   mtx [ -f <loader-dev> ] [invert] load <storage-element-number> [<drive#>]
>   mtx [ -f <loader-dev> ] [invert] unload
> [<storage-element-number>][<drive#>]
>   mtx [ -f <loader-dev> ] [eepos eepos-number] transfer
> <storage-element-number> <storage-element-number>
>   mtx [ -f <device> ] eject
> ------snip----
> 
> 
> However, this fails too:-
> # mtx -f /dev/ch0 inquiry
> cannot open SCSI device '/dev/ch0' - Inappropriate ioctl for device
>  
> But this works:-
> # mtx -f /dev/pass1 inquiry
> Product Type: Medium Changer
> Vendor ID: 'OVERLAND'
> Product ID: 'LXB             '
> Revision: '0106'
> Attached Changer: No

While we are pasting:

# mtx -f /dev/pass1 inquiry
Product Type: Tape Drive
Vendor ID: 'DEC     '
Product ID: 'TZ89     (C) DEC'
Revision: '1837'
Attached Changer: No

# mtx -f /dev/pass0 inquiry
Product Type: Medium Changer
Vendor ID: 'DEC     '
Product ID: 'TL800    (C) DEC'
Revision: '0326'
Attached Changer: No

> Just for info, my scsi devices look like this:-
> # camcontrol devlist
> <PE/PV 1x6 SCSI BP 1.0>            at scbus0 target 6 lun 0 (pass0,ses0)
> <OVERLAND LXB 0106>                at scbus2 target 14 lun 0 (pass1,ch0)
> <HP Ultrium 2-SCSI F6CH>           at scbus2 target 15 lun 0 (pass2,sa0)
> 
> Not sure why it claims that there is no changer though.

I think /dev/pass0 is actually a changer...?

> > chio seems to work OK, but I think examples/autochangers/chio-bacula 
> > (installed to /usr/local/sbin/chio-bacula by the FreeBSD port) may 
> > need updating.

I am now using examples/autochanger/rc-chio-changer with success.


-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to