On 6/17/24 11:38 AM, Adam Weremczuk wrote:
Hi Gary,

I know what you mean by "hijacking a thread" now.
I was reading that message when I decided to post my question from the
same window.

Today I cleared the tape drive with an official cleaning cartridge but
it made no difference to the error:

-------------------------------------------------------------------------

sg_raw -o - -r 1024 -t 60 -v /dev/sg1 8c 00 00 00 00 00 00 00  00 00 00
00 04 00 00 00
      cdb to send: [8c 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00]
SCSI Status: Check Condition

Sense Information:
Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
   Raw sense data (in hex), sb_len=21, embedded_len=21
          70 00 05 00 00 00 00 0d  00 00 00 00 20 00 00 00
          00 00 00 00 00

Error 9 occurred, no data received
Illegal request, Invalid opcode

------------------------------------
-------------------------------------

If it was some kind of a hardware fault I should be seeing other
problems, shouldn't I?

All backups and Bacula scripts keep completing without errors, it's just
this one command that fails.
I've even run a big restore as a test and it all looks perfectly fine.

I don't have any spare hardware try different configuration.
Is there anything else to try to determine the root cause?
Why would a reboot alone trigger it?

Regards,
Adam

Hello Adam,

Not sure if this will be any help at all, but I just checked and see that in my `mtx-changer-python.py` drop-in replacement script, to check for tape cleaning required messages, I am using:
----8<----
 sg_logs --page=0xc /dev/sg##
----8<----

Then I look for:
----8<----
Cleaning action not required (or completed)

or

Cleaning action required
----8<----

To determine if I need to automatically find and load a cleaning tape before 
returning contr
ol to the SD...

I had been using `tapealert` instead of sg_logs, but I found that tapeinfo clears all alert messages on the drive, so they could never be caught by the SD when it calls tapeinfo in the tapealert script. Sg_logs just reports what I need without clearing the other flags that the SD needs to know when a drive or tape is bad/damaged, etc.


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