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

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

Sorry for the late reply. Great you have figured out the issue with the
configuration!

Best,
Ana

On Fri, Jan 27, 2023 at 7:17 PM Lee Damon  wrote:

> Well that's what I get for reading the documentation. All the pointers
> about Offline on Unmount led me down the wrong path.
>
> Setting 'offline = 1" and "offline_sleep=10" seems to have fixed it.
>
> nomad
> ___
> 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-27 Thread Lee Damon
Well that's what I get for reading the documentation. All the pointers
about Offline on Unmount led me down the wrong path.

Setting 'offline = 1" and "offline_sleep=10" seems to have fixed it.

nomad
___
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-27 Thread Lee Damon
Does anyone else have any suggestions?

thanks,
nomad

On Fri, Jan 20, 2023 at 9:15 AM Lee Damon  wrote:

> 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] 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] 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] LTO8 tape jukebox fails where LTO5 worked fine

2023-01-19 Thread Gary R. Schmidt

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