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. :)
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. :)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...
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=nomtx: Request Sense: Additional Sense Code
= 20
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).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 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.
Best regards, Bill -- Bill Arlofski w...@protonmail.com
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users