Re: Bacula or Drive problem?
"Dr. Thorsten Brandau via Bacula-users" <[email protected]>
| Newsgroups | gmane.comp.bacula.user |
|---|---|
| Message-ID | <[email protected]> |
Bill Arlofski via Bacula-users schrieb am 13.06.25 um 19:48:
> On 6/12/25 10:32 AM, Dr. Thorsten Brandau via Bacula-users wrote:
>>
>> Hi Bill
>>
>> thank you for your as always helpful insights.
>
> You are more than welcome, Thorsten. :)
>
>
>> I was not aware of the conflict between the libraries and baculas
>> autoclean feature. Immediately I turned the one of the lib off.
>>
>> I test drove some time ago the alternate MTX script. It worked well
>> for some time but I ran in some kind of problem I do not remember.
>> Last but not least, the original script worked well after an update.
>> I believe it something to do with python on my system, which pretty
>> effectively was kind of broken (Suse Tumbleweed).
> Funny, because the original `mtx-changer` combination bash & perl
> script has not been touched by developers in many years. Not sure what
> update you are thinking of. :)
>
>
>> What is the advantage of the alternate tapealert? From first
>> impression of your github I do not see any...
>
> On https://github.com/waa/bacula-tapealert see the two secti
> ons "THE PROBLEM", and "THE SOLUTION":
>
> - Much better logging
> - Automatic /dev/sg node detection (this is one of the most important
> I think)
> - Email an admin when TapeAlerts are reported
>
>
>> (and running it manually tries to log into an non-existing
>> directory, might be abetter idea to log in standard to /var/log
>> instead).
>
> Good point. It was written on a system running Bacula Enterprise, and
> of course, /opt/bacula/log is the default location for logs. But,
> logging is disabled by default, and of course this is simply fixed by
> using the `-f` option to specify the exact path and filename you would
> like to log to. ;)
>
>
>> The mtx command gave the following reply:
>> 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
> = 20
>> mtx: Request Sense: Additional Sense Qualifier = 00
>> mtx: Request Sense: Field in Error = 00
>> mtx: Request Sense: BPV=no
>> mtx: Request Sense: Error in CDB=yes
>> mtx: Request Sense: SKSV=yes
>> mtx: Request Sense: Field Pointer = 00 00
>> READ ELEMENT STATUS Command Failed
>>
>>
>> So, what does this mean?
> Your tape library is either broken, is not compatible with mtx (lol,
> not likely), or you are pointing to the wrong device node (also not
> likely).
>
> Your library will never work with Bacula until and unless you are able
> to get mtx status outputs from the command line, and can load/unload
> tapes using mtx too.
>
Hi Bill
after resolving the issue (it was on the bacual end - somehow the loader
changed suddenly from sg7 to sg8), I tried to use your mtx script. But I
got those error messages:
5-Jun 10:31 -sd JobId 1467: 3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 2.
Results=usage: mtx-changer-python.py [-h] [-v] [-c CONFIG] [-s SECTION] [-i JOBID]
[-j JOBNAME]
chgr_device
{list,listall,load,loaded,slots,transfer,unload}
slot drive_device drive_index
mtx-changer-python.py: error: unrecognized arguments: BackupCatalog.2025-06-15_10.29.57_49
With the original it works fine.
Cheers
T
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users