Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-07 Thread Dan Langille
> On Feb 7, 2018, at 1:04 PM, Dimitri Maziuk wrote: > > On 02/07/2018 11:57 AM, Dan Langille wrote: >> Either Bacula is in charge of the changer or it is not. > > Only when it's running a job. If access is not concurrent, then it's > very likely the tool not cleaning up

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-07 Thread Dimitri Maziuk
On 02/07/2018 11:57 AM, Dan Langille wrote: > Either Bacula is in charge of the changer or it is not. Only when it's running a job. If access is not concurrent, then it's very likely the tool not cleaning up after itself properly or something. -- Dimitri Maziuk Programmer/sysadmin

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-07 Thread Dan Langille
Either Bacula is in charge of the changer or it is not. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Feb 7, 2018, at 12:48 PM, Kenneth Garges wrote: > > That might be the issue. Somebody does something in the web interface that > takes the changer offline, clicks

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-07 Thread Kenneth Garges
That might be the issue. Somebody does something in the web interface that takes the changer offline, clicks OK at the warning message. Then later when it’s back online FreeBSD doesn’t figure that out and needs a reboot. Probably an issue that should be addressed with FreeBSD rather than

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-07 Thread Alan Brown
On 07/02/18 02:50, Alan Brown wrote: I also submitted some chages to the mtx-changer script a while ago which check that the changer's actually ready before attempting to send it commands. Kern's been sitting on them for a couple of years. @ -82,6 +66,7 @@ #$1 $2

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-06 Thread Alan Brown
On 07/02/18 02:01, Kenneth Garges wrote: > Permissions and ownership are ok. I think I figured out the problem. > > Both mtx and chio would work for a while, then stop working returning only > “Inappropriate ioctl for device” or other errors. The culprit I think is a > library management tool by

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-06 Thread Dan Langille
> On Feb 6, 2018, at 9:01 PM, Kenneth Garges wrote: > > Permissions and ownership are ok. I think I figured out the problem. > > Both mtx and chio would work for a while, then stop working returning only > “Inappropriate ioctl for device” or other errors. The culprit I think

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-06 Thread Kenneth Garges
Permissions and ownership are ok. I think I figured out the problem. Both mtx and chio would work for a while, then stop working returning only “Inappropriate ioctl for device” or other errors. The culprit I think is a library management tool by Quantum. The library provides a web interface

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-06 Thread Dan Langille
-- Dan Langille - BSDCan / PGCon d...@langille.org > On Feb 6, 2018, at 7:07 AM, Alan Brown wrote: > > On 03/02/18 13:45, Dan Langille wrote: >>> *ahem* >>> >>> MTX is _only_ designed to interface to scsi generic devices. Unless >>> /dev/pass42 is another name for the

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-06 Thread Alan Brown
On 03/02/18 13:45, Dan Langille wrote: *ahem* MTX is _only_ designed to interface to scsi generic devices. Unless /dev/pass42 is another name for the generic device you'll have problems. Can confirm /dev/pass* devices on FreeBSD are the right thing to use. From

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-03 Thread Dan Langille
> On Feb 2, 2018, at 7:07 AM, Alan Brown wrote: > > On 31/01/18 03:23, Kenneth Garges wrote: >> I’m having trouble getting a tape library to work. Individual tape drive >> seems ok but the library sometimes makes btape hang requiring a reboot. Or >> it fails. > > > > #

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-02 Thread Kenneth Garges
Thanks for your help. > On 2Feb 2018, at 4:07 AM, Alan Brown wrote: > > On 31/01/18 03:23, Kenneth Garges wrote: >> I’m having trouble getting a tape library to work. Individual tape drive >> seems ok but the library sometimes makes btape hang requiring a reboot. Or >> it

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-02 Thread Alan Brown
On 31/01/18 03:23, Kenneth Garges wrote: I’m having trouble getting a tape library to work. Individual tape drive seems ok but the library sometimes makes btape hang requiring a reboot. Or it fails. > # Define a Virtual autochanger Remove anything you're not actually using. They're just

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-02 Thread Cejka Rudolf
Kenneth Garges wrote (2018/02/01): > I tried chio but gave up on it because anything I did gave an > "Inappropriate ioctl for device" error. Now that a reboot seems to > have gotten mtx working I found that chio works too. Ok, mtx works just once after reboot. Some delay helps, or not? And chio,

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-01 Thread Dan Langille
> On Feb 1, 2018, at 6:42 PM, Kenneth Garges wrote: > > This is really weird. > > First mtx works: > > # mtx -f /dev/pass42 status > Storage Changer /dev/pass42:2 Drives, 54 Slots ( 5 Import/Export ) > Data Transfer Element 0:Empty > Data Transfer Element 1:Full (Storage

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-01 Thread Kenneth Garges
> On 31Jan 2018, at 12:57 AM, Cejka Rudolf wrote: > > Kenneth Garges wrote (2018/01/30): >> I???m having trouble getting a tape library to work. > > Hello, try chio status -v or mtx status. Both should return > status of your autochanger including tape labels. If they both

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-02-01 Thread Kenneth Garges
Thanks for all the suggestions. > On 30Jan 2018, at 8:03 PM, Dan Langille wrote: > >> On Jan 30, 2018, at 10:23 PM, Kenneth Garges > > wrote: >> >> I’m having trouble getting a tape library to work. Individual tape drive >> seems

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-01-31 Thread Cejka Rudolf
Kenneth Garges wrote (2018/01/30): > I???m having trouble getting a tape library to work. Hello, try chio status -v or mtx status. Both should return status of your autochanger including tape labels. If they both do return an error, do you have correct permissons on /dev/ch*? I have the following

Re: [Bacula-users] Problems getting a tape library to work under FreeBSD

2018-01-30 Thread Dan Langille
> On Jan 30, 2018, at 10:23 PM, Kenneth Garges wrote: > > I’m having trouble getting a tape library to work. Individual tape drive > seems ok but the library sometimes makes btape hang requiring a reboot. Or it > fails. Fix that first. > > My system is FreeBSD