Re: Bacula or Drive problem?

Bill Arlofski via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
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.


Best regards,
Bill

-- 
Bill Arlofski
[email protected]

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc (application/pgp-signature, 583 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsCpBAEBCABdBYJoTGRTCZBIDTDab9XDQDUUAAAAAAAcABBzYWx0QG5vdGF0
aW9ucy5vcGVucGdwanMub3JnOeKj7PjJz2A1qb6D0vclcxYhBMuLnlBaSQiu
SUbb6UgNMNpv1cNAAACRZgf/Vk5YXAUNZjbBjttVh+gQwYekaNyLAOwb6pU+
QSP1jeoaZ/3BxT0CcKzF2djMw9iY1QSfNydgNgYFgIHY4+gyz5iGKSMZzZ1N
BVd9lp42XPSYWVFd/kDeZ+oK8FwRelCuFr2blCW7SPBCdeJuEbwx1dm6E7/u
apRCubRflcmAWNTFthVQQ1V6nhUpg/Lc04s2iKLHTCSEOD1ywnT87k1mE/MQ
pA8Vs+c4J5yWNaFvxuGApmHRY/FNcv2Dd6P6ZyFL38eXE96kCfkyCgp8fcLR
nLwnvTygXhB50B+HSnxq5ki4o7Sqx5OvaAmbY3ZNmtEovLQnK2VJfDt8uziz
EP/uow==
=34ap
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.