On 5/27/25 2:19 PM, Marco Gaiarin wrote:
Mandi! Udo Kaune
   In chel di` si favelave...

Not quite clear what you are trying to accomplish. Stenc does load keys
to the drive, not to tapes. Please elaborate.

Sure, but if bacula-sd is ''locking'' the tape device, stenc cannon enroll
the key.

My initial goal was to provide a script that verify if the key are correctly
enrolled on the tape drive; i've tested it on a (non busy) tape drive, but
found that does not work on a busy tape drive, or on a tape drive in a tape
library.


Probably there's no escape: to check if key is correctly enrolled, stenc
have to access fully the tape device...

Hello Marco,

It might be possible to modify and add such a key feature to my 
`mtx-changer-python.py` drop-in replacement script:

https://github.com/waa/mtx-changer-python

...which includes the ability to:

- intercept the unload process
- check if the drive wants to be cleaned
- actual
ly load a cleaning tape
- wait
- then unload it
- and then return control to the SD

Maybe during the load function we can add a call to a new function (yet to be written) which could verify that the keys are loaded?

Let me know what you think.

Sounds like an interesting project. :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to