Re: [Bacula-users] FreeBSD autochangers

2006-02-22 Thread Kern Sibbald
On Wednesday 22 February 2006 00:20, Dan Langille wrote: > On 21 Feb 2006 at 23:26, Kern Sibbald wrote: > > Dan: could you make some comment (off-list if you want) about the two > > chio-changer scripts? As I mentioned previously, unless a number of > > people tell me that there should only be one

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Dan Langille
On 21 Feb 2006 at 23:26, Kern Sibbald wrote: > Dan: could you make some comment (off-list if you want) about the two > chio-changer scripts? As I mentioned previously, unless a number of > people tell me that there should only be one script, I am more > inclined to keep both -- unless Pascal Pede

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Kern Sibbald
On Tuesday 21 February 2006 14:42, Rudolf Cejka wrote: > Kern Sibbald wrote (2006/02/21): > > On Thursday 16 February 2006 17:54, Rudolf Cejka wrote: > > > I think too and I have sent my chio-changer script to Kern with > > > Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d", > >

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Rudolf Cejka
Kern Sibbald wrote (2006/02/21): > On Thursday 16 February 2006 17:54, Rudolf Cejka wrote: > > I think too and I have sent my chio-changer script to Kern with > > Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d", > > but Kern changed it to variant with quotes just around chio-cha

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Kern Sibbald
On Thursday 16 February 2006 17:54, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > One suggested change to the script: > > -# Changer Command = "path-to-this-script/chio-changer" %c %o %S %a %d > > +# Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d" > > I think th

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Kern Sibbald
On Thursday 16 February 2006 18:05, Dan Langille wrote: > On 16 Feb 2006 at 17:54, Rudolf Cejka wrote: > > Dan Langille wrote (2006/02/16): > > > One suggested change to the script: > > > -# Changer Command = "path-to-this-script/chio-changer" %c %o %S %a > > > %d +# Changer Command = "path-to-

Re: [Bacula-users] FreeBSD autochangers

2006-02-21 Thread Kern Sibbald
On Thursday 16 February 2006 15:14, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > Anyone using FreeBSD 6 with an autochanger? > > Yes, for example me. > > > Are you using chio or mtx? > > I'm using chio, because it is native in FreeBSD. > > > chio seems to work OK, but I think examples

Re: [Bacula-users] FreeBSD autochangers

2006-02-17 Thread Attila Fülöp
Dan Langille wrote: 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

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 18:12, Simon Gao wrote: > On 16 Feb 2006 at 14:23, Simon Gao wrote: > > > I guess which version of FreeBSD makes big difference. I run 5.2.1 > > > > # camcontrol devlist > > at scbus0 target 0 lun 0 (pass0,da0) > >at scbus1 target 0 lun 0 (pass1,da1) >

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Martin Simmons
> 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 > at scbus0 target 0 lun 0 (pass0,da0) >at scbus1 target 0 lun 0 (pass1,da1) >at s

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 14:23, Simon Gao wrote: > I guess which version of FreeBSD makes big difference. I run 5.2.1 > > # camcontrol devlist > at scbus0 target 0 lun 0 (pass0,da0) >at scbus1 target 0 lun 0 (pass1,da1) >at scbus1 target 0 lun 1 (pass2,da2) >

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Simon Gao
I guess which version of FreeBSD makes big difference. I run 5.2.1 # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) at scbus1 target 0 lun 0 (pass1,da1) at scbus1 target 0 lun 1 (pass2,da2) at scbus2 target 4 lun 0 (pass3,sa0)

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Joe Dollard
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. F

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 11:39, 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. Fixed.

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Simon Gao
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: >

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Arno Lehmann
On 2/16/2006 8:12 PM, Dan Langille wrote: On 16 Feb 2006 at 19:59, Arno Lehmann wrote: ... Also, hmmm... I'm not a FreeBSD expert, but I suspect ses0 is SCSI Enclosure Services, ch0 is a Changer, and sa0 is the actual tape drive. ^ From man ses: ses -- SCSI Environmental Services

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 19:59, Arno Lehmann wrote: > Hello, > > On 2/16/2006 6:11 PM, Dan Langille wrote: > > On 16 Feb 2006 at 16:57, Danny Butroyd wrote: > ... > > While we are pasting: > > > > # mtx -f /dev/pass1 inquiry > > Product Type: Tape Drive > > Vendor ID: 'DEC ' > > Product ID: 'TZ89

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Arno Lehmann
Hello, On 2/16/2006 6:11 PM, Dan Langille wrote: On 16 Feb 2006 at 16:57, Danny Butroyd wrote: ... 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 hmmm... old stuff? ... J

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 18:57, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > Any hesitations now? > > Not from me ;o) Done. Thanks. :) -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php --

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Rudolf Cejka
Dan Langille wrote (2006/02/16): > Any hesitations now? Not from me ;o) -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic --- This S

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
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 > >

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 17:54, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > One suggested change to the script: > > -# Changer Command = "path-to-this-script/chio-changer" %c %o %S %a %d > > +# Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d" > > I think the quote ne

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Danny Butroyd
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 /u

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Rudolf Cejka
Dan Langille wrote (2006/02/16): > One suggested change to the script: > -# Changer Command = "path-to-this-script/chio-changer" %c %o %S %a %d > +# Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d" > I think the quote needs to be moved to where shown. I think too and I have

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 17:16, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > > I think my status output may be unique... > > ;o) Well, that's what I thought when I was having trouble. > > > # chio status -S > > > ... > > > drive 0: source: <> > > > The above situation represents a tape

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Rudolf Cejka
Dan Langille wrote (2006/02/16): > > I think my status output may be unique... ;o) > > # chio status -S > > ... > > drive 0: source: <> > > The above situation represents a tape in the drive upon power up. Yes, it is typical for tape libraries, because there could happen any condition/action du

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 9:20, Rudolf Cejka wrote: > On 16 Feb 2006 at 15:14, Rudolf Cejka wrote: > > > Dan Langille wrote (2006/02/16): > > > Anyone using FreeBSD 6 with an autochanger? > > > > Yes, for example me. > > > > > Are you using chio or mtx? > > > > I'm using chio, because it is native in

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
On 16 Feb 2006 at 15:14, Rudolf Cejka wrote: > Dan Langille wrote (2006/02/16): > > Anyone using FreeBSD 6 with an autochanger? > > Yes, for example me. > > > Are you using chio or mtx? > > I'm using chio, because it is native in FreeBSD. > > > chio seems to work OK, but I think examples/autoc

Re: [Bacula-users] FreeBSD autochangers

2006-02-16 Thread Rudolf Cejka
Dan Langille wrote (2006/02/16): > Anyone using FreeBSD 6 with an autochanger? Yes, for example me. > Are you using chio or mtx? I'm using chio, because it is native in FreeBSD. > chio seems to work OK, but I think examples/autochangers/chio-bacula > (installed to /usr/local/sbin/chio-bacula b

[Bacula-users] FreeBSD autochangers

2006-02-16 Thread Dan Langille
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 chio seems to work OK, but I think examples/autochangers/chio-bacula (installed to /usr/local/sbin/