Thanks for all the suggestions.
> On 30Jan 2018, at 8:03 PM, Dan Langille <d...@langille.org> wrote:
>
>> On Jan 30, 2018, at 10:23 PM, Kenneth Garges <gar...@ucsc.edu
>> <mailto:gar...@ucsc.edu>> 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.
I’m not sure how to fix it. Sometimes it just gets wedged into this state where
even running mtx status will fail with Inquiry Command failed. Then a reboot
and it works. For a while. Then something happens and it’s wedged again.
>>
>> My system is FreeBSD 10.3-RELEASE-p24. I compiled bacula-9.0.6 from source.
>> I have a Quantum Scalar i80 tape library with an LTO-4 drive attached via
>> fiber channel.
>
> If you can I suggest using the packages. It's what I do. I am also the
> FreeBSD packager.
>
> I do not think this is the cause of the issues.
>
I wanted to use a package but could not find any that had both psql and openssl
options.
>>
>> #
>> # Define a Virtual autochanger
>> #
>> Autochanger {
>> Name = FileChgr1
>> Device = FileChgr1-Dev1, FileChgr1-Dev2
>> Changer Command = ""
>> Changer Device = /dev/null
>> }
>
> I suggest trying must one Device in here for now.
Yes that’s what I’m doing with the tape library device. The second tape drive
is commented out.
>>
>> # btape -c /etc/bacula/bacula-sd.conf -v -d 99 /dev/nsa0
>> Tape block granularity is 1024 bytes.
>> btape: address_conf.c:274-0 Initaddr 0.0.0.0:9103
>> btape: butil.c:290-0 Using device: "/dev/nsa0" for writing.
>> btape: autochanger.c:328-0 Locking changer core-prod-jb-2
>> 30-Jan 19:08 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
>> command.
>> btape: autochanger.c:284-0 Run program=/usr/local/etc/bacula/mtx-changer
>> /dev/pass42 loaded 0 /dev/nsa0 0
>> btape: autochanger.c:286-0 run_prog: /usr/local/etc/bacula/mtx-changer
>> /dev/pass42 loaded 0 /dev/nsa0 0 stat=268435457 result=RequestSense (0x03)
>> failed
>
> I think you need more testing on the command line with mtx-changer. See below.
> …
Yeah all those errors happened when it was wedged. I didn’t realize it. After a
reboot they work.
>
> I have documented most of my setup procedure on FreeBSD.
>
> Getting mtx working first. Then mtx-changers. Verify permissions on devices
> for the bacula user.
>
> These might help, based on
> https://dan.langille.org/?s=mtx-changer&searchsubmit=
> <https://dan.langille.org/?s=mtx-changer&searchsubmit=>
>
> https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/
>
> <https://dan.langille.org/2016/02/04/dell-tl4000-tape-library-running-btape-and-configuring-baculas-mtx-changer/>
>
> This example has more on permissions:
>
> https://www.freebsddiary.org/tape-library-integration.php
> <https://www.freebsddiary.org/tape-library-integration.php>
>
> Hope that gets you started.
>
> --
> Dan Langille - BSDCan / PGCon
> d...@langille.org <mailto:d...@langille.org>
Thanks for your efforts documenting all this. I have read most if not all of it.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users