Hi!
I'm trying to use a tape library with a changer and two drives (dell tl4000 which is an IBM 3573-TL in disguise with two ULT3580-HH7 drives)
.
All is recognized pretty well by pbs, media in all slots shown correctly by GUI and pmtx
The problem is: loading and moving of tapes as well as labeling isn't working.
here is a sample output by pmtx:
root@pbs:~# pmtx load 2 --changer=tl4000 --drivenum=1
using device /dev/tape/by-id/scsi-00X4U78Y5511_LL0
Error: load drive failed - Illegal Request, Additional sense: Invalid message error
That led me to another post in this forum: https://forum.proxmox.com/threads/tape-libary-2-drives.87909/
although it's a similar problem, i found out that there seems to be a completely different cause.
The changer is working from that system though.
Had a simple test:
root@pbs:~# mtx -f /dev/tape/by-id/scsi-1IBM_3573-TL_00X4U78Y5511_LL0 load 2 1
Loading media from Storage Element 2 into drive 1...done
Our Library reports a medium transport address of "1" if the following output is not misinterpreted by me (bytes 8-9 of sub-header, first two bytes of the second line as referred on page 3-61 in https://www.ibm.com/support/pages/s...bf546185257b19007450cb/$FILE/GA32-0547-02.pdf):
root@pbs:~# sg_raw -r 16k /dev/tape/by-id/scsi-1IBM_3573-TL_00X4U78Y5511 B8 00 00 00 0F FF 01 00 FF FF 00 00
SCSI Status: Good
Received 868 bytes of data:
00 00 01 00 30 00 00 03 5c 01 00 00 10 00 00 00 10 ...0...\........
10 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20 04 00 00 32 00 00 00 64 01 00 01 00 00 00 00 00 ...2...d........
30 00 81 10 02 02 01 00 22 49 42 4d 20 20 20 20 20 ......."IBM
40 55 4c 54 33 35 38 30 2d 48 48 37 20 20 20 20 20 ULT3580-HH7
50 31 30 57 54 30 38 34 35 31 37 01 01 08 00 00 00 10WT084517......
60 00 00 00 00 00 00 02 01 00 22 49 42 4d 20 20 20 ........."IBM
70 20 20 55 4c 54 33 35 38 30 2d 48 48 37 20 20 20 ULT3580-HH7
80 20 20 31 30 57 54 30 38 36 30 38 39 02 00 00 10 10WT086089....
90 00 00 02 d0 10 00 09 00 54 33 35 38 30 a1 10 00 ........T3580...
a0 37 20 20 20 10 01 39 30 57 54 30 38 36 b1 10 01 7 ..90WT086...
b0 00 00 00 00 10 02 08 00 00 00 00 00 00 00 00 00 ................
c0 00 00 00 00 10 03 09 00 00 00 00 00 00 81 10 03 ................
d0 00 00 00 00 10 04 09 00 00 00 00 00 00 81 10 04 ................
e0 00 00 00 00 10 05 09 00 00 00 00 00 00 81 10 05 ................
f0 00 00 00 00 10 06 09 00 00 00 00 00 00 81 10 06 ................
100 00 00 00 00 10 07 09 00 00 00 00 00 00 81 10 07 ................
110 00 00 00 00 10 08 09 00 00 00 00 00 00 81 10 08 ................
120 00 00 00 00 10 09 09 00 00 00 00 00 00 81 10 09 ................
130 00 00 00 00 10 0a 09 00 00 00 00 00 00 81 10 0a ................
140 00 00 00 00 10 0b 09 00 00 00 00 00 00 81 10 0b ................
150 00 00 00 00 10 0c 09 00 00 00 00 00 00 81 10 0c ................
160 00 00 00 00 10 0d 09 00 00 00 00 00 00 81 10 0d ................
170 00 00 00 00 10 0e 09 00 00 00 00 00 00 81 10 0e ................
180 00 00 00 00 10 0f 09 00 00 00 00 00 00 81 10 0f ................
190 00 00 00 00 10 10 09 00 00 00 00 00 00 81 10 10 ................
1a0 00 00 00 00 10 11 09 00 00 00 00 00 00 81 10 11 ................
1b0 00 00 00 00 10 12 09 00 00 00 00 00 00 81 10 12 ................
1c0 00 00 00 00 10 13 09 00 00 00 00 00 00 81 10 13 ................
1d0 00 00 00 00 10 14 09 00 00 00 00 00 00 81 10 14 ................
1e0 00 00 00 00 10 15 09 00 00 00 00 00 00 81 10 15 ................
1f0 00 00 00 00 10 16 09 00 00 00 00 00 00 81 10 16 ................
200 00 00 00 00 10 17 09 00 00 00 00 00 00 81 10 17 ................
210 00 00 00 00 10 18 09 00 00 00 00 00 00 81 10 18 ................
220 00 00 00 00 10 19 09 00 00 00 00 00 00 81 10 19 ................
230 00 00 00 00 10 1a 09 00 00 00 00 00 00 81 10 1a ................
240 00 00 00 00 10 1b 09 00 00 00 00 00 00 81 10 1b ................
250 00 00 00 00 10 1c 09 00 00 00 00 00 00 81 10 1c ................
260 00 00 00 00 10 1d 09 00 00 00 00 00 00 81 10 1d ................
270 00 00 00 00 10 1e 09 00 00 00 00 00 00 81 10 1e ................
280 00 00 00 00 10 1f 09 00 00 00 00 00 00 81 10 1f ................
290 00 00 00 00 10 20 09 00 00 00 00 00 00 81 10 20 ..... .........
2a0 00 00 00 00 10 21 09 00 00 00 00 00 00 81 10 21 .....!.........!
2b0 00 00 00 00 10 22 09 00 00 00 00 00 00 81 10 22 ....."........."
2c0 00 00 00 00 10 23 09 00 00 00 00 00 00 81 10 23 .....#.........#
2d0 00 00 00 00 10 24 09 00 00 00 00 00 00 81 10 24 .....$.........$
2e0 00 00 00 00 10 25 09 00 00 00 00 00 00 81 10 25 .....%.........%
2f0 00 00 00 00 10 26 09 00 00 00 00 00 00 81 10 26 .....&.........&
300 00 00 00 00 10 27 09 00 00 00 00 00 00 81 10 27 .....'.........'
310 00 00 00 00 10 28 09 00 00 00 00 00 00 81 10 28 .....(.........(
320 00 00 00 00 10 29 09 00 00 00 00 00 00 81 10 29 .....).........)
330 00 00 00 00 10 2a 09 00 00 00 00 00 00 81 10 2a .....*.........*
340 00 00 00 00 10 2b 09 00 00 00 00 00 00 81 10 2b .....+.........+
350 00 00 00 00 10 2c 09 00 00 00 00 00 00 81 10 2c .....,.........,
360 00 00 00 00 ....
So what might be the problem?
I pulled the code from https://github.com/proxmox/proxmox-backup and think that regardless of the reported address, each time a 0 is passed.
What makes me think so?
In pbs-tape/src/sg_pt_changer.rs the use of this address is prepared and passed to the command but i found no appearance of setting it to other than 0.
...
medium_transport_address: u16,
...
cmd.extend(medium_transport_address.to_be_bytes());
...
I would be happy if a developer agrees to my conclusion and provides a fix.
Best regards,
Joerg
I'm trying to use a tape library with a changer and two drives (dell tl4000 which is an IBM 3573-TL in disguise with two ULT3580-HH7 drives)
.
All is recognized pretty well by pbs, media in all slots shown correctly by GUI and pmtx
The problem is: loading and moving of tapes as well as labeling isn't working.
here is a sample output by pmtx:
root@pbs:~# pmtx load 2 --changer=tl4000 --drivenum=1
using device /dev/tape/by-id/scsi-00X4U78Y5511_LL0
Error: load drive failed - Illegal Request, Additional sense: Invalid message error
That led me to another post in this forum: https://forum.proxmox.com/threads/tape-libary-2-drives.87909/
although it's a similar problem, i found out that there seems to be a completely different cause.
The changer is working from that system though.
Had a simple test:
root@pbs:~# mtx -f /dev/tape/by-id/scsi-1IBM_3573-TL_00X4U78Y5511_LL0 load 2 1
Loading media from Storage Element 2 into drive 1...done
Our Library reports a medium transport address of "1" if the following output is not misinterpreted by me (bytes 8-9 of sub-header, first two bytes of the second line as referred on page 3-61 in https://www.ibm.com/support/pages/s...bf546185257b19007450cb/$FILE/GA32-0547-02.pdf):
root@pbs:~# sg_raw -r 16k /dev/tape/by-id/scsi-1IBM_3573-TL_00X4U78Y5511 B8 00 00 00 0F FF 01 00 FF FF 00 00
SCSI Status: Good
Received 868 bytes of data:
00 00 01 00 30 00 00 03 5c 01 00 00 10 00 00 00 10 ...0...\........
10 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20 04 00 00 32 00 00 00 64 01 00 01 00 00 00 00 00 ...2...d........
30 00 81 10 02 02 01 00 22 49 42 4d 20 20 20 20 20 ......."IBM
40 55 4c 54 33 35 38 30 2d 48 48 37 20 20 20 20 20 ULT3580-HH7
50 31 30 57 54 30 38 34 35 31 37 01 01 08 00 00 00 10WT084517......
60 00 00 00 00 00 00 02 01 00 22 49 42 4d 20 20 20 ........."IBM
70 20 20 55 4c 54 33 35 38 30 2d 48 48 37 20 20 20 ULT3580-HH7
80 20 20 31 30 57 54 30 38 36 30 38 39 02 00 00 10 10WT086089....
90 00 00 02 d0 10 00 09 00 54 33 35 38 30 a1 10 00 ........T3580...
a0 37 20 20 20 10 01 39 30 57 54 30 38 36 b1 10 01 7 ..90WT086...
b0 00 00 00 00 10 02 08 00 00 00 00 00 00 00 00 00 ................
c0 00 00 00 00 10 03 09 00 00 00 00 00 00 81 10 03 ................
d0 00 00 00 00 10 04 09 00 00 00 00 00 00 81 10 04 ................
e0 00 00 00 00 10 05 09 00 00 00 00 00 00 81 10 05 ................
f0 00 00 00 00 10 06 09 00 00 00 00 00 00 81 10 06 ................
100 00 00 00 00 10 07 09 00 00 00 00 00 00 81 10 07 ................
110 00 00 00 00 10 08 09 00 00 00 00 00 00 81 10 08 ................
120 00 00 00 00 10 09 09 00 00 00 00 00 00 81 10 09 ................
130 00 00 00 00 10 0a 09 00 00 00 00 00 00 81 10 0a ................
140 00 00 00 00 10 0b 09 00 00 00 00 00 00 81 10 0b ................
150 00 00 00 00 10 0c 09 00 00 00 00 00 00 81 10 0c ................
160 00 00 00 00 10 0d 09 00 00 00 00 00 00 81 10 0d ................
170 00 00 00 00 10 0e 09 00 00 00 00 00 00 81 10 0e ................
180 00 00 00 00 10 0f 09 00 00 00 00 00 00 81 10 0f ................
190 00 00 00 00 10 10 09 00 00 00 00 00 00 81 10 10 ................
1a0 00 00 00 00 10 11 09 00 00 00 00 00 00 81 10 11 ................
1b0 00 00 00 00 10 12 09 00 00 00 00 00 00 81 10 12 ................
1c0 00 00 00 00 10 13 09 00 00 00 00 00 00 81 10 13 ................
1d0 00 00 00 00 10 14 09 00 00 00 00 00 00 81 10 14 ................
1e0 00 00 00 00 10 15 09 00 00 00 00 00 00 81 10 15 ................
1f0 00 00 00 00 10 16 09 00 00 00 00 00 00 81 10 16 ................
200 00 00 00 00 10 17 09 00 00 00 00 00 00 81 10 17 ................
210 00 00 00 00 10 18 09 00 00 00 00 00 00 81 10 18 ................
220 00 00 00 00 10 19 09 00 00 00 00 00 00 81 10 19 ................
230 00 00 00 00 10 1a 09 00 00 00 00 00 00 81 10 1a ................
240 00 00 00 00 10 1b 09 00 00 00 00 00 00 81 10 1b ................
250 00 00 00 00 10 1c 09 00 00 00 00 00 00 81 10 1c ................
260 00 00 00 00 10 1d 09 00 00 00 00 00 00 81 10 1d ................
270 00 00 00 00 10 1e 09 00 00 00 00 00 00 81 10 1e ................
280 00 00 00 00 10 1f 09 00 00 00 00 00 00 81 10 1f ................
290 00 00 00 00 10 20 09 00 00 00 00 00 00 81 10 20 ..... .........
2a0 00 00 00 00 10 21 09 00 00 00 00 00 00 81 10 21 .....!.........!
2b0 00 00 00 00 10 22 09 00 00 00 00 00 00 81 10 22 ....."........."
2c0 00 00 00 00 10 23 09 00 00 00 00 00 00 81 10 23 .....#.........#
2d0 00 00 00 00 10 24 09 00 00 00 00 00 00 81 10 24 .....$.........$
2e0 00 00 00 00 10 25 09 00 00 00 00 00 00 81 10 25 .....%.........%
2f0 00 00 00 00 10 26 09 00 00 00 00 00 00 81 10 26 .....&.........&
300 00 00 00 00 10 27 09 00 00 00 00 00 00 81 10 27 .....'.........'
310 00 00 00 00 10 28 09 00 00 00 00 00 00 81 10 28 .....(.........(
320 00 00 00 00 10 29 09 00 00 00 00 00 00 81 10 29 .....).........)
330 00 00 00 00 10 2a 09 00 00 00 00 00 00 81 10 2a .....*.........*
340 00 00 00 00 10 2b 09 00 00 00 00 00 00 81 10 2b .....+.........+
350 00 00 00 00 10 2c 09 00 00 00 00 00 00 81 10 2c .....,.........,
360 00 00 00 00 ....
So what might be the problem?
I pulled the code from https://github.com/proxmox/proxmox-backup and think that regardless of the reported address, each time a 0 is passed.
What makes me think so?
In pbs-tape/src/sg_pt_changer.rs the use of this address is prepared and passed to the command but i found no appearance of setting it to other than 0.
...
medium_transport_address: u16,
...
cmd.extend(medium_transport_address.to_be_bytes());
...
I would be happy if a developer agrees to my conclusion and provides a fix.
Best regards,
Joerg