>>>>> On Thu, 16 Feb 2006 14:23:28 -0800, Simon Gao <[EMAIL PROTECTED]> said:
> 
> I guess which version of FreeBSD makes big difference. I run 5.2.1
> 
> # camcontrol devlist
> <COMPAQ RAID 1  VOLUME OK>         at scbus0 target 0 lun 0 (pass0,da0)
> <IFT ES A12U-G 331J>               at scbus1 target 0 lun 0 (pass1,da1)
> <IFT ES A12U-G 331J>               at scbus1 target 0 lun 1 (pass2,da2)
> <QUANTUM SuperDLT1 2A2A>           at scbus2 target 4 lun 0 (pass3,sa0)
> <QUANTUM UHDL 000D>                at scbus2 target 4 lun 1 (pass4,ch0)
> 
> # ls -l /dev/pass*
> crw-------  1 root  operator     31,   0 Jan 16 21:31 /dev/pass0
> crw-------  1 root  operator   31,   1 Jan 16 21:31 /dev/pass1
> crw-------  1 root  operator   31,   2 Jan 16 21:31 /dev/pass2
> crw-------  1 root  operator   31,   3 Jan 16 21:31 /dev/pass3
> crw-rw-rw-  1 root  bacula     31,   4 Jan 16 21:31 /dev/pass4
> 
> # mtx -f /dev/pass4 list
> cannot open SCSI device '/dev/pass4' - Operation not permitted

You could try running it under ktrace/kdump to narrow down what is not
permitted.

__Martin


> 
> Simon
> 
> 
> Joe Dollard wrote:
> > I use the mtx-changer script on FreeBSD 5.4 and haven't had any
> > problems with it.  As an earlier poster mentioned, you need to use the
> > /dev/pass* devices and not the /dev/ch* devices to get it to work.
> >
> > Regards,
> > Joe
> >
> > Simon Gao wrote:
> >
> >> 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
> >>
> >> !DSPAM:43f4d51c914271536622625!
> >>
> >>  
> >>
> 
> 
> 
> -------------------------------------------------------
> 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