Error: error reading element status: decode element status failed - failed to fill whole buffer

SC8198

New Member
Dec 1, 2023
22
2
3
Hello,

I am trying to get proxmox backup server working with my spectra 50e tape library and 2 lto-5 drives. I got the drives showing their status but when I run,
Code:
proxmox-tape changer status library

I get this error.
Code:
Error: error reading element status: decode element status failed - failed to fill whole buffer

I did read another thread that mentioned the error but it was in regards to the drives not the library.

Not sure where to look from here. Any help is much appreciated.

Thanks!
 
I figured out how to patch the source code but I believe it already has the patches? I compiled the code into a deb and installed it but still get the same error when trying to access the library.

Still not sure where the error are originating.
 
I have a spectra 50e tape library.

pmtx command returns

Code:
pmtx status --device /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45
using device /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45
Error: decode element status failed - failed to fill whole buffer

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 00 00 00 0F FF 01 00 FF FF 00 00
SCSI Status: Good

Received 952 bytes of data:
 00     00 01 00 35 00 00 03 b0  01 00 00 10 00 00 00 10    ...5............
 10     00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     03 00 00 10 00 00 00 10  00 10 18 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  04 00 00 30 00 00 00 60    ...........0...`
 40     01 00 08 00 00 00 00 00  00 00 00 00 02 01 00 20    ...............
 50     31 30 31 31 30 30 34 46  34 35 00 00 00 00 00 00    1011004F45......
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 70     01 01 08 00 00 00 00 00  00 00 00 00 02 01 00 20    ...............
 80     31 30 31 32 30 30 34 46  34 35 00 00 00 00 00 00    1012004F45......
 90     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 a0     02 00 00 10 00 00 03 10  10 00 08 00 00 00 00 00    ................
 b0     00 00 00 00 00 00 00 00  10 01 08 00 00 00 00 00    ................
 c0     00 00 00 00 00 00 00 00  10 02 08 00 00 00 00 00    ................
 d0     00 00 00 00 00 00 00 00  10 03 08 00 00 00 00 00    ................
 e0     00 00 00 00 00 00 00 00  10 04 08 00 00 00 00 00    ................
 f0     00 00 00 00 00 00 00 00  10 05 08 00 00 00 00 00    ................
 100    00 00 00 00 00 00 00 00  10 06 08 00 00 00 00 00    ................
 110    00 00 00 00 00 00 00 00  10 07 08 00 00 00 00 00    ................
 120    00 00 00 00 00 00 00 00  10 08 08 00 00 00 00 00    ................
 130    00 00 00 00 00 00 00 00  10 09 08 00 00 00 00 00    ................
 140    00 00 00 00 00 00 00 00  10 0a 08 00 00 00 00 00    ................
 150    00 00 00 00 00 00 00 00  10 0b 08 00 00 00 00 00    ................
 160    00 00 00 00 00 00 00 00  10 0c 08 00 00 00 00 00    ................
 170    00 00 00 00 00 00 00 00  10 0d 08 00 00 00 00 00    ................
 180    00 00 00 00 00 00 00 00  10 0e 08 00 00 00 00 00    ................
 190    00 00 00 00 00 00 00 00  10 0f 08 00 00 00 00 00    ................
 1a0    00 00 00 00 00 00 00 00  10 10 08 00 00 00 00 00    ................
 1b0    00 00 00 00 00 00 00 00  10 11 08 00 00 00 00 00    ................
 1c0    00 00 00 00 00 00 00 00  10 12 08 00 00 00 00 00    ................
 1d0    00 00 00 00 00 00 00 00  10 13 08 00 00 00 00 00    ................
 1e0    00 00 00 00 00 00 00 00  10 14 08 00 00 00 00 00    ................
 1f0    00 00 00 00 00 00 00 00  10 15 08 00 00 00 00 00    ................
 200    00 00 00 00 00 00 00 00  10 16 08 00 00 00 00 00    ................
 210    00 00 00 00 00 00 00 00  10 17 08 00 00 00 00 00    ................
 220    00 00 00 00 00 00 00 00  10 18 08 00 00 00 00 00    ................
 230    00 00 00 00 00 00 00 00  10 19 08 00 00 00 00 00    ................
 240    00 00 00 00 00 00 00 00  10 1a 08 00 00 00 00 00    ................
 250    00 00 00 00 00 00 00 00  10 1b 08 00 00 00 00 00    ................
 260    00 00 00 00 00 00 00 00  10 1c 08 00 00 00 00 00    ................
 270    00 00 00 00 00 00 00 00  10 1d 08 00 00 00 00 00    ................
 280    00 00 00 00 00 00 00 00  10 1e 08 00 00 00 00 00    ................
 290    00 00 00 00 00 00 00 00  10 1f 08 00 00 00 00 00    ................
 2a0    00 00 00 00 00 00 00 00  10 20 08 00 00 00 00 00    ......... ......
 2b0    00 00 00 00 00 00 00 00  10 21 08 00 00 00 00 00    .........!......
 2c0    00 00 00 00 00 00 00 00  10 22 08 00 00 00 00 00    ........."......
 2d0    00 00 00 00 00 00 00 00  10 23 08 00 00 00 00 00    .........#......
 2e0    00 00 00 00 00 00 00 00  10 24 08 00 00 00 00 00    .........$......
 2f0    00 00 00 00 00 00 00 00  10 25 08 00 00 00 00 00    .........%......
 300    00 00 00 00 00 00 00 00  10 26 08 00 00 00 00 00    .........&......
 310    00 00 00 00 00 00 00 00  10 27 08 00 00 00 00 00    .........'......
 320    00 00 00 00 00 00 00 00  10 28 08 00 00 00 00 00    .........(......
 330    00 00 00 00 00 00 00 00  10 29 08 00 00 00 00 00    .........)......
 340    00 00 00 00 00 00 00 00  10 2a 08 00 00 00 00 00    .........*......
 350    00 00 00 00 00 00 00 00  10 2b 08 00 00 00 00 00    .........+......
 360    00 00 00 00 00 00 00 00  10 2c 08 00 00 00 00 00    .........,......
 370    00 00 00 00 00 00 00 00  10 2d 08 00 00 00 00 00    .........-......
 380    00 00 00 00 00 00 00 00  10 2e 08 00 00 00 00 00    ................
 390    00 00 00 00 00 00 00 00  10 2f 08 00 00 00 00 00    ........./......
 3a0    00 00 00 00 00 00 00 00  10 30 08 00 00 00 00 00    .........0......
 3b0    00 00 00 00 00 00 00 00                             ........
 
Last edited:
Hi, thanks for the output, this seems to be parseable by our code, but the command is not exactly what we send, can you maybe execute the follwoing sg_raw commands and post the output?

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 12 00 00 0F FF 00 00 FF FF 00 00
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 13 00 00 0F FF 00 00 FF FF 00 00
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 14 00 00 0F FF 00 00 FF FF 00 00
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 04 00 00 0F FF 01 00 FF FF 00 00
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 0F FF 00 00 FF FF 00 00

we query the changer for each type, since some libraries can't give all information at once
 
Hello, Sorry for the later reply. Here is the output from those.

Code:
 sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 1                                                                                                                                                             2 00 00 0F FF 00 00 FF FF 00 00
SCSI Status: Good

Received 2564 bytes of data:
 00     10 00 00 31 00 00 09 fc  02 80 00 34 00 00 09 f4    ...1.......4....
 10     10 00 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00 10 01 08 00  00 00 00 00 00 00 00 00    ................
 50     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 70     00 00 00 00 00 00 00 00  10 02 08 00 00 00 00 00    ................
 80     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 90     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 a0     00 00 00 00 00 00 00 00  00 00 00 00 10 03 08 00    ................
 b0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 c0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 d0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 e0     10 04 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 f0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 100    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 110    00 00 00 00 10 05 08 00  00 00 00 00 00 00 00 00    ................
 120    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 130    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 140    00 00 00 00 00 00 00 00  10 06 08 00 00 00 00 00    ................
 150    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 160    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 170    00 00 00 00 00 00 00 00  00 00 00 00 10 07 08 00    ................
 180    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 190    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 1a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 1b0    10 08 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 1c0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 1d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 1e0    00 00 00 00 10 09 08 00  00 00 00 00 00 00 00 00    ................
 1f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 200    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 210    00 00 00 00 00 00 00 00  10 0a 08 00 00 00 00 00    ................
 220    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 230    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 240    00 00 00 00 00 00 00 00  00 00 00 00 10 0b 08 00    ................
 250    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 260    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 270    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 280    10 0c 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 290    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 2a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 2b0    00 00 00 00 10 0d 08 00  00 00 00 00 00 00 00 00    ................
 2c0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 2d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 2e0    00 00 00 00 00 00 00 00  10 0e 08 00 00 00 00 00    ................
 2f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 300    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 310    00 00 00 00 00 00 00 00  00 00 00 00 10 0f 08 00    ................
 320    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 330    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 340    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 350    10 10 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 360    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 370    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 380    00 00 00 00 10 11 08 00  00 00 00 00 00 00 00 00    ................
 390    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 3a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 3b0    00 00 00 00 00 00 00 00  10 12 08 00 00 00 00 00    ................
 3c0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 3d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 3e0    00 00 00 00 00 00 00 00  00 00 00 00 10 13 08 00    ................
 3f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 400    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 410    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 420    10 14 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 430    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 440    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 450    00 00 00 00 10 15 08 00  00 00 00 00 00 00 00 00    ................
 460    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 470    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 480    00 00 00 00 00 00 00 00  10 16 08 00 00 00 00 00    ................
 490    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 4a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 4b0    00 00 00 00 00 00 00 00  00 00 00 00 10 17 08 00    ................
 4c0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 4d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 4e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 4f0    10 18 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 500    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 510    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 520    00 00 00 00 10 19 08 00  00 00 00 00 00 00 00 00    ................
 530    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 540    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 550    00 00 00 00 00 00 00 00  10 1a 08 00 00 00 00 00    ................
 560    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 570    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 580    00 00 00 00 00 00 00 00  00 00 00 00 10 1b 08 00    ................
 590    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5b0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5c0    10 1c 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 5f0    00 00 00 00 10 1d 08 00  00 00 00 00 00 00 00 00    ................
 600    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 610    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 620    00 00 00 00 00 00 00 00  10 1e 08 00 00 00 00 00    ................
 630    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 640    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 650    00 00 00 00 00 00 00 00  00 00 00 00 10 1f 08 00    ................
 660    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 670    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 680    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 690    10 20 08 00 00 00 00 00  00 00 00 00 00 00 00 00    . ..............
 6a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 6b0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 6c0    00 00 00 00 10 21 08 00  00 00 00 00 00 00 00 00    .....!..........
 6d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 6e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 6f0    00 00 00 00 00 00 00 00  10 22 08 00 00 00 00 00    ........."......
 700    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 710    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 720    00 00 00 00 00 00 00 00  00 00 00 00 10 23 08 00    .............#..
 730    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 740    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 750    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 760    10 24 08 00 00 00 00 00  00 00 00 00 00 00 00 00    .$..............
 770    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 780    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 790    00 00 00 00 10 25 08 00  00 00 00 00 00 00 00 00    .....%..........
 7a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 7b0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 7c0    00 00 00 00 00 00 00 00  10 26 08 00 00 00 00 00    .........&......
 7d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 7e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 7f0    00 00 00 00 00 00 00 00  00 00 00 00 10 27 08 00    .............'..
 800    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 810    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 820    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 830    10 28 08 00 00 00 00 00  00 00 00 00 00 00 00 00    .(..............
 840    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 850    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 860    00 00 00 00 10 29 08 00  00 00 00 00 00 00 00 00    .....)..........
 870    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 880    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 890    00 00 00 00 00 00 00 00  10 2a 08 00 00 00 00 00    .........*......
 8a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 8b0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 8c0    00 00 00 00 00 00 00 00  00 00 00 00 10 2b 08 00    .............+..
 8d0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 8e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 8f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 900    10 2c 08 00 00 00 00 00  00 00 00 00 00 00 00 00    .,..............
 910    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 920    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 930    00 00 00 00 10 2d 08 00  00 00 00 00 00 00 00 00    .....-..........
 940    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 950    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 960    00 00 00 00 00 00 00 00  10 2e 08 00 00 00 00 00    ................
 970    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 980    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 990    00 00 00 00 00 00 00 00  00 00 00 00 10 2f 08 00    ............./..
 9a0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 9b0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 9c0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 9d0    10 30 08 00 00 00 00 00  00 00 00 00 00 00 00 00    .0..............
 9e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 9f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 a00    00 00 00 00

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 13 00 00 0F FF 00 00 FF FF 00 00
SCSI Status: Good

Received 68 bytes of data:
 00     00 10 00 01 00 00 00 3c  03 80 00 34 00 00 00 34    .......<...4...4
 10     00 10 18 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 14 00 00 0F FF 00 00 FF FF 00 00
SCSI Status: Good

Received 120 bytes of data:
 00     01 00 00 02 00 00 00 70  04 80 00 34 00 00 00 68    .......p...4...h
 10     01 00 08 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00 01 01 08 00  00 00 00 00 00 00 00 00    ................
 50     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 70     00 00 00 00 00 00 00 00

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 04 00 00 0F FF 01 00 FF FF 00 00
SCSI Status: Good

Received 112 bytes of data:
 00     01 00 00 02 00 00 00 68  04 00 00 30 00 00 00 60    .......h...0...`
 10     01 00 08 00 00 00 00 00  00 00 00 00 02 01 00 20    ...............
 20     31 30 31 31 30 30 34 46  34 35 00 00 00 00 00 00    1011004F45......
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     01 01 08 00 00 00 00 00  00 00 00 00 02 01 00 20    ...............
 50     31 30 31 32 30 30 34 46  34 35 00 00 00 00 00 00    1012004F45......
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................

Code:
sg_raw -r 16k /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 0F FF 00 00 FF FF 00 00
SCSI Status: Good

Received 68 bytes of data:
 00     00 01 00 01 00 00 00 3c  01 80 00 34 00 00 00 34    .......<...4...4
 10     00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00                                         ....

let me know of anything more I can do to help. And thank you for taking time to help me!
 
mhmm.. these answers look correct (so no idea where the error is currently)

can you post the output of 'dmesg' after it fails? maybe we can see something there

also may you try these commands (those should now be exactly the same as we try, we use slightly different values for the allocation etc. than the previous examples):

Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 12 00 00 03 E8 00 01 00 00 00 00
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 13 00 00 03 E8 00 01 00 00 00 00
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 14 00 00 03 E8 00 01 00 00 00 00
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 04 00 00 03 E8 01 01 00 00 00 00
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 01 00 00 00 00
 
I didn't see anything after it failed in dmesg but here is the output.

https://pastebin.com/NEqkyLqa

Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 12 00 00 03 E8 00 01 00 00 00 00
SCSI Status: Good

No data received

Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 13 00 00 03 E8 00 01 00 00 00 00
SCSI Status: Good

No data received

Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 14 00 00 03 E8 00 01 00 00 00 00
SCSI Status: Good

No data received


Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 04 00 00 03 E8 01 01 00 00 00 00
SCSI Status: Good

No data received

Code:
sg_raw -r 65536 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 01 00 00 00 00
SCSI Status: Good

No data received
 
ok that's weird, we ask for more data and get nothing back (which would explain the error)

can you test the following commands, just to test if it's really the allocation length parameter (as i suspect):

Code:
sg_raw -r 65535 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 00 FF FF 00 00

sg_raw -r 131071 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 01 FF FF 00 00

the first one just tries the allocation length 0xFFFF and the second with 0x1FFFF
in our code we use 0x!0000 and i suspect that the changer wrongly does not parse the first byte?
(also can you check if there maybe is a firmware update to the library that might fix that?)
 
I looked for a firmware update but it's a older model so I think support is few and far between.

Code:
sg_raw -r 65535 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 00 FF FF 00 00
SCSI Status: Good

Received 68 bytes of data:
 00     00 01 00 01 00 00 00 3c  01 80 00 34 00 00 00 34    .......<...4...4
 10     00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00                                         ....


Code:
sg_raw -r 131071 /dev/tape/by-id/scsi-1SPECTRA_PYTHON_9110004F45 B8 11 00 00 03 E8 00 01 FF FF 00 00
SCSI Status: Good

Received 68 bytes of data:
 00     00 01 00 01 00 00 00 3c  01 80 00 34 00 00 00 34    .......<...4...4
 10     00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
 40     00 00 00 00                                         ....

Also in /dev/tape/by-id there are different id's for this changer.

scsi-1SPECTRA_PYTHON_9110004F45-changer
scsi-9110004F45
 
Make and model is spectralogic T50e

I will be able to patch it later today. Is the steps for patching compiling from source then making a Deb and installing that? Was a little confused on how to apply the patch. Thanks.
 
I will be able to patch it later today. Is the steps for patching compiling from source then making a Deb and installing that? Was a little confused on how to apply the patch. Thanks.
yes, the building process for proxmox-backup is a bit involved and not really trivial, but check out: https://pbs.proxmox.com/wiki/index.php/Developer_Documentation and https://git.proxmox.com/?p=proxmox-...241a4d0e477c6c04ce834566;hb=refs/heads/master
i'd apply the patch with e.g. 'git am'

if you have any concrete questions about that, please ask

alternatively you can wait until we have a new package on pbstest (no promises on the timeframe though)
 
We'll good news!

pmtx status --changer spectra now returns the correct info.

Code:
pmtx status --changer spectra
using device /dev/tape/by-id/scsi-9110004F45
Transport Element (Griper)      0: Empty
Data Transfer Element (Drive)   0: Empty
Data Transfer Element (Drive)   1: Empty
  Storage Element   1: Empty
  Storage Element   2: Empty
  Storage Element   3: Empty
  Storage Element   4: Empty
  Storage Element   5: Empty
  Storage Element   6: Empty
  Storage Element   7: Empty
  Storage Element   8: Empty
  Storage Element   9: Empty
  Storage Element  10: Empty
  Storage Element  11: Empty
  Storage Element  12: Empty
  Storage Element  13: Empty
  Storage Element  14: Empty
  Storage Element  15: Empty
  Storage Element  16: Empty
  Storage Element  17: Empty
  Storage Element  18: Empty
  Storage Element  19: Empty
  Storage Element  20: Empty
  Storage Element  21: Empty
  Storage Element  22: Empty
  Storage Element  23: Empty
  Storage Element  24: Empty
  Storage Element  25: Empty
  Storage Element  26: Empty
  Storage Element  27: Empty
  Storage Element  28: Empty
  Storage Element  29: Empty
  Storage Element  30: Empty
  Storage Element  31: Empty
  Storage Element  32: Empty
  Storage Element  33: Empty
  Storage Element  34: Empty
  Storage Element  35: Empty
  Storage Element  36: Empty
  Storage Element  37: Empty
  Storage Element  38: Empty
  Storage Element  39: Empty
  Storage Element  40: Empty
  Storage Element  41: Empty
  Storage Element  42: Empty
  Storage Element  43: Empty
  Storage Element  44: Empty
  Storage Element  45: Empty
  Storage Element  46: Empty
  Storage Element  47: Empty
  Storage Element  48: Empty
  Storage Element  49: Empty
  Import/Export    50: Empty

Gonna load some tapes and see if we can get some backups going. Will advise with more info when I can do those backups.

Thank you so much dcsapak!
 
  • Like
Reactions: dcsapak

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!