To me, mtx does not work on FreeBSD. One has to use chio.

For changer, I made a symlink from chio-changer to mtx-changer
/usr/local/share/bacula. Then everything works fine there. There are two
lines missing "#" on the top of the script.

Simon Gao


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
>
> 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.
>
>   
>> 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.
>>
>>
>>   
>>     
>
>
>
> -------------------------------------------------------
> 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
>   



-------------------------------------------------------
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