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 12.06.25 um 18:03:
> On 6/12/25 1:43 AM, Dr. Thorsten Brandau via Bacula-users wrote:
>> Hi
>>
>> I am using a Neo 24 Tape library with an LTO-9 drive.
>>
>> The old one (Tandberg) broke recently and was replaced with a different
>> one. Then the backups with Bacula worked fine for some time. Now I get
>> those errors (again):
>>
>> 12-Jun 09:31 -dir JobId 1458: shell command: run BeforeJob
>> "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
>> 12-Jun 09:31 -dir JobId 1458: BeforeJob: mysqldump: Deprecated
>> program name. It will be removed in a future release, use
>> '/usr/bin/mariadb-dump' instead
>> 12-Jun 09:32 -dir JobId 1458: Start Backup JobId 1458,
>> Job=BackupCatalog.2025-06-12_09.31.24_24
>> 12-Jun 09:32 -dir JobId 1458: Using Device "LTO9-1" to write.
>> 12-Jun 09:32 -sd JobId 1458: 3991 Bad autochanger "loaded? drive 0"
>> command: ERR=Child exited with code 1.
>> Results=mtx: Request Sense: Long Report=yes
>> mtx: Request Sense: Valid Residual=no
>> mtx: Request Sense: Error Code=70 (Current)
>> m
> tx: 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
>>
>>
>> No backup possible ("Fatal Error").
>>
>> I do not know if this may be caused by Bacual or by the tape itself.
>> Vendor says I must clean, however, the library is set to "autoclean"
>> and a cleaning tape is available. I changed the cleaning tape to a
>> new one, manually cleaned twice and tried again to backup with
>> identical (errorous) result.
>>
>> Any idea how to trace the problem to the tape or software? What to do?
>>
>> Thank you.
>>
>> Thorsten
>
> Hello Thorsten,
>
> This is a problem with the tape library. In this moment, Bacula has
> simply called the `mtx-changer` script, which in turn calls the `mtx`
> utility to request a `mtx -f /dev/your/tape/library/node status` so
> that Bacula can klnow if the drive has a tape in it.
>
> The mtx command is failing.
>
> This can be proven by stopping the SD, and running the mtx status
> command as the bacula user from the command line:
>
> # sudo -u bacula mtx -f /dev/your/tape/library/node status
>
>
> Also, Bacula and a tape library's autoclean feature are not compatible
> and can be very dangerous - up to and including possible data loss.
>
> If you are interested in (beta?) testing a script I wrote as a drop-in
> replacement for the default `mtx-changer` script, it has excellent
> logging, a feature to detect and report if a tape drive requires
> cleaning, and another feature that can be enabled to automatically
> clean the drive.
>
> It is called `mtx-changer-python` and may be found in my Github
> account here: https://github.com/waa
>
> P.S. My `bacula-tap
> ealert` drop-in replacement for the default `tapealert` script might
> also be of interest to you. ;)
>
>
>
> Hope this helps,
> Bill
>
Hi Bill
thank you for your as always helpful insights.
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).
What is the advantage of the alternate tapealert? From first impression
of your github I do not see any... (and running it manually tries to log
into an non-existing directory, might be abetter idea to log in standard
to /var/log instead).
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?
Best regards,
Thorsten
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users