Can't use Tape using pmt

lela810

New Member
Aug 17, 2022
6
0
1
Switzerland
As you can see, I can use < mt > to manage my tape.
Sadly, using < pmt > like PBS, it doesn't work.

I've tried:
-Different Tapes
-Cleaning Tapes
-LTO-4 Tape
-PBS Upgrade

None of the above helped.

Below I've attached you a print out of the error and some general device info.
Hope it helps :)

Thank you so much in advance!


Code:
root@Backup01:~# mt -f /dev/st0 rewind


root@Backup01:~# pmt rewind
using device /dev/tape/by-id/scsi-HUJ52949NU-sg
Error: rewind failed - Illegal Request, Additional sense: Invalid message error


root@Backup01:~# pmt status
using device /dev/tape/by-id/scsi-HUJ52949NU-sg
{
  "vendor": "HP",
  "product": "Ultrium 5-SCSI",
  "revision": "Z64D",
  "blocksize": 65536,
  "compression": true,
  "buffer-mode": 1,
  "density": "LTO5",
  "alert-flags": "(empty)",
  "file-number": 0,
  "block-number": 0,
  "manufactured": 1311033600,
  "bytes-read": 26024911831040,
  "bytes-written": 47935366627328,
  "volume-mounts": 101,
  "medium-passes": 2032,
  "medium-wearout": 0.127
}
 
does using the tape (drive) work for regular PBS purposes?
 
could you also post the output of pmt cartridge-memory? thanks!
 
Ofcourse :)

Code:
root@Backup01:/home/administrator# pmt cartridge-memory
using device /dev/tape/by-id/scsi-HUJ52949NU-sg
0|Remaining Capacity In Partition|1459056
1|Maximum Capacity In Partition|1459056
2|Tapealert Flags|(empty)
3|Load Count|101
4|MAM Space Remaining|1014
5|Assigning Organization|LTO-CVE
6|Formatted Density Code|58
7|Initialization Count|1
9|Volume Change Reference|0001c536
522|Device Vendor/Serial Number at Last Load|HP      HUJ52949NU
523|Device Vendor/Serial Number at Load-1|HP      HUJ52949NU
524|Device Vendor/Serial Number at Load-2|HP      HU134501WT
525|Device Vendor/Serial Number at Load-3|HP      HU134501WT
544|Total MBytes Written in Medium Life|45714770
545|Total MBytes Read In Medium Life|24819290
546|Total MBytes Written in Current Load|70
547|Total MBytes Read in Current/Last Load|0
548|Logical Position of First Encrypted Block|ffffffffffffffff
549|Logical Position of First Unencrypted Block After the First Encrypted Block|ffffffffffffffff
1024|Medium Manufacturer|HP
1025|Medium Serial Number|1171204927
1026|Medium Length|846
1027|Medium Width|127
1028|Assigning Organization|LTO-CVE
1029|Medium Density Code|58
1030|Medium Manufacture Date|20110719
1031|MAM Capacity|8192
1032|Medium Type|00
1033|Medium Type Information|0000
4096|Unique Cartridge Identify (UCI)|9947572147334230443032304d4158454c4c202000058c3200100000
4097|Alternate Unique Cartridge Identify (Alt-UCI)|994757214733423044303230313137313230343932370010
 
thanks! I guess we'll require some more debug output to figure out what's going wrong.. @dcsapak @dietmar
 
ok, could you post the output of
Code:
pmt status
sg_raw -r 1k /dev/tape/by-id/scsi-HUJ52949NU-sg 01 00 00 00 00 00
?

on rewind we literally only issue the scsi REWIND (01h) command, i don't see how what could go wrong there...
 
Sure thing :)


Code:
root@Backup01:~# pmt status
using device /dev/tape/by-id/scsi-HUJ52949NU-sg
{
  "vendor": "HP",
  "product": "Ultrium 5-SCSI",
  "revision": "Z64D",
  "blocksize": 0,
  "compression": true,
  "buffer-mode": 1,
  "density": "LTO5",
  "alert-flags": "(empty)",
  "file-number": 0,
  "block-number": 0,
  "manufactured": 1311033600,
  "bytes-read": 26024911831040,
  "bytes-written": 47935410667520,
  "volume-mounts": 101,
  "medium-passes": 2032,
  "medium-wearout": 0.127
}
root@Backup01:~# sg_raw -r 1k /dev/tape/by-id/scsi-HUJ52949NU-sg 01 00 00 00 00 00
SCSI Status: Check Condition

Sense Information:
Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid message error

Error 5 occurred, no data received
 
mhmm ok so the raw 'REWIND' command fails already... strange that the mt command works then..

could you check if there is a firmware update for your drive? we encountered some cases in the past where updating the drive firmware fixed most issues...
 
this is a very basic command and the error message does not really help with finding out whats wrong (the message is most definitely not 'invalid')
so aside from checking the hardware (controller/cable/drive) for errors and updating the firmware there really isn't much we can do here...
 
Completely wild guess, but what type of controller do you use?
If it is not already an HBA in IT-mode, you could flash it if possible (hardware-side and your environment-side) or try with another pure HBA in IT-mode.
 

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!