I/O Errors using TAR to LTO-5 tape AFTER CLEANING

Kernels & Hardware, configuring network, installing services

I/O Errors using TAR to LTO-5 tape AFTER CLEANING

Postby w4kh » 2019-07-27 14:43

This question involves some "Old School" activity, but as an old dude, I think I'm entitled to ask... And, this ran fine three times before upgrading to Buster and twice since.
My system configuration:
Code: Select all
Linux BigMutt 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1 (2019-07-19) x86_64 GNU/Linux
Motherboard: Gigabyte 970A-D3P
CPU: AMD FX-8350 8-Core Processor @4000.000 MHz
cache: 2048 KB
RAM: 32GB (4x8GB)  Unbuffered (Unregistered)
HP EH957SB StorageWorks LTO-5 Ultrium 3000 SAS Internal Tape Drive
QUANTUM LTO 5 TAPE CARTRIDGE (MR-L5MQN-01)
Video: GeForce 8400 GS
Monitor: VIZIO E320VA

I cleaned (cleaner cartridge) before starting this task using tar, and the LTO-5 tape cartridge has only been run through 6 times...
Is the error with the cartridge, the LTO-5 (SAS) drive or what? How do I find the exact cause for an i/o error that is simply reported initially as:
Code: Select all
TAPE=/dev/nst0
tar --create --file $TAPE --verbose --totals ./*
./2019-07-21_SDA1.img
./2019-07-21_SDA2.img
Total bytes written: 39025121280 (37GiB, ?/s)
tar: /dev/nst0: cannot write: Input/output error
tar: /dev/nst0: cannot close: Input/output error
tar: Error is not recoverable: exiting now
/bin/mt: /dev/nst0: rmtopen failed: No such file or directory


I looked in syslog for clues and syslog says:
Code: Select all
Jul 27 09:18:17 BigMutt kernel: [39221.766994] st 6:0:3:0: [st0] Block limits 1 - 16777215 bytes.
Jul 27 09:24:12 BigMutt kernel: [39576.563080] st 6:0:3:0: device_block, handle(0x0009)
Jul 27 09:24:12 BigMutt kernel: [39576.563205] st 6:0:3:0: [st0] Error e0000 (driver bt 0x0, host bt 0
xe).
Jul 27 09:24:13 BigMutt kernel: [39578.062876] st 6:0:3:0: device_unblock and setting to running, hand
le(0x0009)
Jul 27 09:24:13 BigMutt kernel: [39578.062963] st 6:0:3:0: [st0] Error 10000 (driver bt 0x0, host bt 0x1).
Jul 27 09:24:13 BigMutt kernel: [39578.062966] st 6:0:3:0: [st0] Error on write filemark.
Jul 27 09:24:13 BigMutt kernel: [39578.064281] mpt2sas_cm0: removing handle(0x0009), sas_addr(0x500110a001622ed0)
Jul 27 09:24:13 BigMutt kernel: [39578.064283] mpt2sas_cm0: enclosure logical id(0x500605b00341cef0), slot(0)
Jul 27 09:24:18 BigMutt kernel: [39582.825144] scsi 6:0:4:0: Sequential-Access HP       Ultrium 5-SCSI   Z6ED PQ: 0 ANSI: 6
Jul 27 09:24:18 BigMutt kernel: [39582.825152] scsi 6:0:4:0: SSP: handle(0x0009), sas_addr(0x500110a001622ed0), phy(3), device_name(0x500110a001622ed2)
Jul 27 09:24:18 BigMutt kernel: [39582.825153] scsi 6:0:4:0: enclosure logical id (0x500605b00341cef0), slot(0)
Jul 27 09:24:18 BigMutt kernel: [39582.827036] scsi 6:0:4:0: TLR Enabled
Jul 27 09:24:18 BigMutt kernel: [39582.829132] st 6:0:4:0: Attached scsi tape st0
Jul 27 09:24:18 BigMutt kernel: [39582.829134] st 6:0:4:0: st0: try direct i/o: yes (alignment 4 B)
Jul 27 09:24:18 BigMutt kernel: [39582.829207] st 6:0:4:0: Attached scsi generic sg2 type 1


I tried looking for "Error Codes" in the support pages, but nothing came up for either "e0000" or "10000".
I can put a different LTO-5 cartridge in the drive and try again, but it would be nice not to overwrite what are good backups to tape.
4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
MB: Gigabyte 970A-D3P
CPU: AMD FX-8350 @4000.000 MHz cache: 2048 KB
RAM: 32GB (4x8GB) Unbuffered/Unregistered
LTO-5 SAS Tape on LSI SAS9211 controller
Video: GeForce 8400 GS to VIZIO E320VA
User avatar
w4kh
 
Posts: 83
Joined: 2006-09-09 19:10
Location: Tennessee, USA

Re: I/O Errors using TAR to LTO-5 tape AFTER CLEANING

Postby ruwolf » 2019-07-28 05:13

Command
Code: Select all
mt -f /dev/nst0 status
should write you status information about the tape unit.

Command
Code: Select all
dmesg
should write you more information about system errors and warnings.
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: I/O Errors using TAR to LTO-5 tape AFTER CLEANING

Postby w4kh » 2019-07-28 12:58

Hmmm... ruwolf suggested I try:
Code: Select all
root@BigMutt:~# mt -f /dev/nst0 status
drive type = 114
drive status = 1476395008
sense key error = 0
residue count = 0
file number = 0
block number = 0


While results show an blank tape, I did erase the failed backup on that cartridge, hence the zeros. I am not sure what the "drive type = 114" means, nor how to decode the "drive status = 1476395008"

and, I ran the second command ruwolf suggested (and edited out the entries pertaining to "office" and a spreadsheet I had open noting a large memory block of almost 4 GB - but nothing but the backup was open during the failed backup attempt... the system was freshly booted prior to the backup attempt):
Code: Select all
root@BigMutt:~# dmesg
st 6:0:3:0: [st0] Block limits 1 - 16777215 bytes.
[39576.563080] st 6:0:3:0: device_block, handle(0x0009)
[39576.563205] st 6:0:3:0: [st0] Error e0000 (driver bt 0x0, host bt 0xe).
[39578.062876] st 6:0:3:0: device_unblock and setting to running, handle(0x0009)
[39578.062963] st 6:0:3:0: [st0] Error 10000 (driver bt 0x0, host bt 0x1).
[39578.062966] st 6:0:3:0: [st0] Error on write filemark.
[39578.064281] mpt2sas_cm0: removing handle(0x0009), sas_addr(0x500110a001622ed0)
[39578.064283] mpt2sas_cm0: enclosure logical id(0x500605b00341cef0), slot(0)
[39582.825144] scsi 6:0:4:0: Sequential-Access HP       Ultrium 5-SCSI   Z6ED PQ: 0 ANSI: 6
[39582.825152] scsi 6:0:4:0: SSP: handle(0x0009), sas_addr(0x500110a001622ed0), phy(3), device_name(0x500110a001622ed2)
[39582.825153] scsi 6:0:4:0: enclosure logical id (0x500605b00341cef0), slot(0)
[39582.827036] scsi 6:0:4:0: TLR Enabled
[39582.829132] st 6:0:4:0: Attached scsi tape st0
[39582.829134] st 6:0:4:0: st0: try direct i/o: yes (alignment 4 B)
[39582.829207] st 6:0:4:0: Attached scsi generic sg2 type 1
[122176.617444] st 6:0:4:0: [st0] Block limits 1 - 16777215 bytes


I can easily replace a no good tape cartridge, but the drive is near $1000, so I'll have to work on a workaround until I can swing a new drive. And at this point, I don't really know if it is a cartridge (easy fix) or drive issue, so throwing money at this isn't a good solution (for me - I am old and retired)...
4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
MB: Gigabyte 970A-D3P
CPU: AMD FX-8350 @4000.000 MHz cache: 2048 KB
RAM: 32GB (4x8GB) Unbuffered/Unregistered
LTO-5 SAS Tape on LSI SAS9211 controller
Video: GeForce 8400 GS to VIZIO E320VA
User avatar
w4kh
 
Posts: 83
Joined: 2006-09-09 19:10
Location: Tennessee, USA

Re: I/O Errors using TAR to LTO-5 tape AFTER CLEANING

Postby ruwolf » 2019-07-28 14:08

I am sorry, I do not know mt.
But I can offer you place, where you will probably find more help: lists.GNU.org: Help requests for GNU Tar
Share solution here, if you will get it, please. :-)
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable