Re: [Bacula-users] LTO8 tape jukebox fails where LTO5 worked fine

2023-01-20 Thread Lee Damon
Ana, Gary,

The devices were not properly owned. Changing them did not correct the
problem, sadly. (Given the previous hardware was working with the incorrect
ownerships this isn't really surprising to me, though I would have loved
the quick fix had it held.)

The ownership is now bacula:bacula.

As you suggest, I'll discard the offline unmount directive entirely (it's
been commented out for all of today's tests).

The reason I was trying it is, in order to unload the tape after any test I
have to rewoffl it first. From the most recent test:
 -- begin excerpt --
=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=Bad 268435457
3992 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 unload 1 /dev/tape/0 0
3992 result="Unloading drive 0 into Storage Element 1...Unloading drive 0
into Storage Element 1...Unloading drive 0 into Storage Element
1...Unloading drive 0 into Storage Element 1...Unloading drive 0 into
Storage Element 1...mtx: Request Sense: Long Report=yes
": ERR=Child exited with code 1
3303 Issuing autochanger "load 1 0" command.
3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 load 1 /dev/tape/0 0
3993 result="Drive 0 Full (Storage Element 1 loaded)
": ERR=Child exited with code 1
You must correct this error or the Autochanger will not work.
*quit
: || lvd@harrier ~ [103] ; please mtx -f /dev/changer/0 unload 1
Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long
Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 53
mtx: Request Sense: Additional Sense Qualifier = 01
mtx: Request Sense: Field in Error = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=yes
mtx: Request Sense: Field Pointer = 00 00
MOVE MEDIUM from Element Address 256 to 4096 Failed
: || lvd@harrier ~ [104] ; please mt -f /dev/tape/0 rewoffl
: || lvd@harrier ~ [105] ; please mtx -f /dev/changer/0 unload 1
Unloading drive 0 into Storage Element 1...done
 -- end of excerpt --

I set debug_log=1 and debug_level=100, this is all that shows up
in /var/spool/bacula/mtx.log:

0120-09:00:00.46 0 Parms: /dev/changer/0 loaded 0 /dev/tape/0 0
0120-09:00:00.47 0 Doing mtx -f /dev/changer/0 0 -- to find what is loaded
0120-09:02:04.50 0 Parms: /dev/changer/0 loaded 1 /dev/tape/0 0
0120-09:02:04.50 0 Doing mtx -f /dev/changer/0 0 -- to find what is loaded
0120-09:02:05.86 0 Parms: /dev/changer/0 unload 1 /dev/tape/0 0
0120-09:02:05.86 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:09.97 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:16.81 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:21.96 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:28.00 0 Doing mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:35.01 0 FAIL: mtx -f /dev/changer/0 unload slot=1 drv=0
0120-09:02:35.12 0 Parms: /dev/changer/0 load 1 /dev/tape/0 0
0120-09:02:35.12 0 Doing mtx -f /dev/changer/0 load slot=1 drv=0
0120-09:02:36.40 0 FAIL: mtx -f /dev/changer/0 load slot=1 drv=0

That is repeated for every run of /usr/bin/sudo /sbin/btape -c
/etc/bacula/bacula-sd.conf /dev/tape/0

Thank you both for the pointers!

nomad
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Q. Copy jobs - how to select all uncopied backups jobs that ran in the last 24 hours?

2023-01-20 Thread Justin Case
I ran a test with 1 job name and it works like a charm. Thank you for sharing 
this masterpiece :)

> On 20. Jan 2023, at 08:58, Josip Deanovic  wrote:
> 
> On 2023-01-20 00:42, Justin Case wrote:
>> Thank you so much Josip, that sounds perfect.
>> I will run tests with your query.
> 
> Better check the whole thread because it seems that I have modified
> the query few months later:
> 
> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/9049365.ZOPTLNicxr%40libria/#msg34336222
> 
> -- 
> Josip Deanovic
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Q. Copy jobs - how to select all uncopied backups jobs that ran in the last 24 hours?

2023-01-20 Thread Justin Case
Thank you Josip for pointing this out. I appreciate this.

> On 20. Jan 2023, at 08:58, Josip Deanovic  wrote:
> 
> On 2023-01-20 00:42, Justin Case wrote:
>> Thank you so much Josip, that sounds perfect.
>> I will run tests with your query.
> 
> Better check the whole thread because it seems that I have modified
> the query few months later:
> 
> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/9049365.ZOPTLNicxr%40libria/#msg34336222
> 
> -- 
> Josip Deanovic
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO8 tape jukebox fails where LTO5 worked fine

2023-01-20 Thread Ana Emília M . Arruda
Hello,

Sorry, I sent an incomplete email earlier :-)

It seems that all btape tests, except for the autochanger test, have passed
without using "Offline On Unmount = yes". So I would keep the default value
and not change it.

It would be nice to see the kernel logs when the autochanger test fails:

=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=Bad 268435457
3992 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 unload 1 /dev/tape/0 0
3992 result="Unloading drive 0 into Storage Element 1...Unloading drive 0
into Storage Element 1...Unloading drive 0 into Storage Element
1...Unloading drive 0 into Storage Element 1...Unloading drive 0 into
Storage Element 1...mtx: Request Sense: Long Report=yes
": ERR=Child exited with code 1
3303 Issuing autochanger "load 1 0" command.
3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer
/dev/changer/0 load 1 /dev/tape/0 0
3993 result="Drive 0 Full (Storage Element 1 loaded)
": ERR=Child exited with code 1
You must correct this error or the Autochanger will not work.

Are you running the Storage Daemon as the root user? It is possible you are
having permission problems with the control channel. Can you please check
the permissions to the /dev/changer/0 and /dev/sgX devices?

Best,
Ana


On Fri, Jan 20, 2023 at 11:34 AM Ana Emília M. Arruda <
emiliaarr...@gmail.com> wrote:

> Hello,
>
> So all btape tests except the autochanger test were successful using the
> defaul
>
> On Fri, Jan 20, 2023 at 4:49 AM Gary R. Schmidt 
> wrote:
>
>> On 20/01/2023 04:30, Lee Damon wrote:
>> > We recently replaced a working LTO5 + Scalar i40 jukebox with an IBM
>> > LTO8 tape + Scalar i3 jukebox. The controller and all software remained
>> > the same. I am suspecting a configuration problem and would greatly
>> > appreciate guidance.
>> >
>> > When I tried to label the new tapes it loaded the first one fine, labled
>> > it fine, then failed miserably to unload it. I tried adding the "Offline
>> > On Unmount" command to the config (see below) but that didn't help.
>> >
>> > I then tried running
>> >   /usr/bin/sudo /sbin/btape -c /etc/bacula/bacula-sd.conf /dev/tape/0
>> > which worked fine until it got to the 'test the autochanger' part of
>> the
>> > test,
>> > then failed just as miserably. The results are different (I/O errors)
>> if
>> > the unmount
>> > setting is there, but it fails either way.
>> >
>> > I'll attach two script files that show various btape runs. Note that
>> between
>> > the tests I did the following reset:
>> > sudo mt -f /dev/tape/0 rewoffl
>> > sudo mtx -f /dev/changer/0 unload 1
>> > sudo mtx -f /dev/changer/0 load 1
>> >
>> > Nothing interesting shows up in the system logs.
>> >
>> I would turn on debug in mtx-changer.conf - set debug_level=100 - and
>> see what comes out.
>>
>> Cheers,
>> GaryB-)
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO8 tape jukebox fails where LTO5 worked fine

2023-01-20 Thread Ana Emília M . Arruda
Hello,

So all btape tests except the autochanger test were successful using the
defaul

On Fri, Jan 20, 2023 at 4:49 AM Gary R. Schmidt 
wrote:

> On 20/01/2023 04:30, Lee Damon wrote:
> > We recently replaced a working LTO5 + Scalar i40 jukebox with an IBM
> > LTO8 tape + Scalar i3 jukebox. The controller and all software remained
> > the same. I am suspecting a configuration problem and would greatly
> > appreciate guidance.
> >
> > When I tried to label the new tapes it loaded the first one fine, labled
> > it fine, then failed miserably to unload it. I tried adding the "Offline
> > On Unmount" command to the config (see below) but that didn't help.
> >
> > I then tried running
> >   /usr/bin/sudo /sbin/btape -c /etc/bacula/bacula-sd.conf /dev/tape/0
> > which worked fine until it got to the 'test the autochanger' part of the
> > test,
> > then failed just as miserably. The results are different (I/O errors) if
> > the unmount
> > setting is there, but it fails either way.
> >
> > I'll attach two script files that show various btape runs. Note that
> between
> > the tests I did the following reset:
> > sudo mt -f /dev/tape/0 rewoffl
> > sudo mtx -f /dev/changer/0 unload 1
> > sudo mtx -f /dev/changer/0 load 1
> >
> > Nothing interesting shows up in the system logs.
> >
> I would turn on debug in mtx-changer.conf - set debug_level=100 - and
> see what comes out.
>
> Cheers,
> GaryB-)
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Q. Copy jobs - how to select all uncopied backups jobs that ran in the last 24 hours?

2023-01-20 Thread Josip Deanovic

On 2023-01-20 00:42, Justin Case wrote:

Thank you so much Josip, that sounds perfect.
I will run tests with your query.


Better check the whole thread because it seems that I have modified
the query few months later:

https://sourceforge.net/p/bacula/mailman/bacula-users/thread/9049365.ZOPTLNicxr%40libria/#msg34336222

--
Josip Deanovic


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users