Mt Input Output Error
Contents |
Thu, 03 Mar 2005 15:14:04 -0500 Hello everyone, I am trying to get my scsi tape drive to work. Not matter what I do I get I/O errors. for example: mt
Tar /dev/st0 Cannot Write Input/output Error
-f /dev/st0 status /dev/st0: Input/output error mt -f /dev/nst0 status /dev/nst0: Input/output error linux tape drive input output error when I run command without a tape in I get: mt -f /dev/nst0 status SCSI 2 tape drive: File dev nst0 input output error number=-1, block number=-1, partition=0. Tape block size 0 bytes. Density code 0x0 (default). Soft error count since last status=0 General status bits on (50000): DR_OPEN IM_REP_EN -Tape drive: HP SureStore T4i -Linux 2.6.9-1.667
Tar Cannot Read Input/output Error
i686 GNU/Linux ______________________________________________________________________________________ Command dmesg | grep scsi, shows: scsi: ***** BusLogic SCSI Driver Version 2.1.16 of 18 July 2002 ***** scsi: Copyright 1995-1998 by Leonard N. Zubkoff
Tar: Cannot Write: Input/output Error
Checking: Enabled, Extended Translation: Enabled scsi0: Synchronous Negotiation: Fast, Wide Negotiation: Disabled scsi0: Disconnect/Reconnect: Enabled, Tagged Queuing: Enabled scsi0: Driver Queue Depth: 255, Scatter/Gather Limit: 128 segments scsi0: Tagged Queue Depth: Automatic, Untagged Queue Depth: 3 scsi0: SCSI Bus Termination: Enabled, SCAM: Disabled scsi0: *** BusLogic BT-930 Initialized Successfully *** scsi0 : BusLogic BT-930 Attached scsi tape st0 at scsi0, channel 0, id 4, lun 0 ------------------------------------------------------------------------------------Command lsmod, reveals: Module Size Used by parport_pc 24705 1 lp 11565 0 parport 41737 2 parport_pc,lp autofs4 24005 0 i2c_dev 10433 0 i2c_core 22081 1 i2c_dev sunrpc 160421 1 md5 4033 1 ipv6 232577 12 uhci_hcd 31449 0 e100 39364 0 mii 4673 1 e100 floppy 58609 0 st 34781 0 BusLogic 71645 0 scsi_mod 118417 2 st,BusLogic dm_snapshot 17029 0 dm_zero 2369 0 dm_mirror 23341 2 ext3 116809 2 jbd 74969 1 ext3 dm_mod 54741 6 dm_snapshot,dm_zero,dm_mirror -------------------------------------------------------------------------------- /proc/scsi/scsi: Attached devices: Host: scsi0 Channel: 00 Id: 04 Lun: 00 Vendor: HP Model: T4000s Rev: 1.07 Type: Sequential-Access ANSI SCSI revision: 02 -------------------------------------------------------------------------------- If you need any more info, please let me know. Any ideas greatly appreciated.ERS Follow-Ups: Re: tape drive - input/output error From: Ge
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top HP Storageworks 448 tape drive input/output error with Ubuntu up vote 0 down vote favorite https://www.redhat.com/archives/rhl-list/2005-March/msg00771.html I'm trying to set a backup to tape of a machine using flexbackup. However any attempt to write to the tape drive (via either flexbackup or just tar) results in "/dev/st0: Input/output error" The machine seems to recognise the drive (HP Storageworks Ultrium 448) and that there's a tape in it and "mt status" seems to work... "mt -f /dev/st0 rewind" or "erase" throw no errors... root@stor001:/# mt status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape http://serverfault.com/questions/125807/hp-storageworks-448-tape-drive-input-output-error-with-ubuntu block size 0 bytes. Density code 0x42 (LTO-2). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN root@stor001:/# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: HL-DT-ST Model: DVDRAM GSA-4084N Rev: KS02 Type: CD-ROM ANSI SCSI revision: 05 Host: scsi2 Channel: 00 Id: 03 Lun: 00 Vendor: HP Model: Ultrium 2-SCSI Rev: S65D Type: Sequential-Access ANSI SCSI revision: 03 "tell" does however root@stor001:/# mt -f /dev/st0 tell /dev/st0: Input/output error Based on a forum post I found, I tried: root@stor001:/# dd if=/dev/zero of=/dev/nst0 bs=1024 count=10 10+0 records in 10+0 records out 10240 bytes (10 kB) copied, 5.0815 s, 2.0 kB/s which gave the person on the forum an error but seems to work for me. If anyone has any suggestions, I'm all ears... backup ubuntu-9.10 tape share|improve this question asked Mar 24 '10 at 14:46 Dan D 33 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted 1) first are you sure to use the correct version of mt ? # mt --version should return "mt-st" name of binary. If you only get "mt", then download the mt-st package. # apt-get install mt-st 2) "tell" is only available since SCSI-2, so try this once after each load of tape. # mt -f /dev/nst0 stsetoptions scsi2logical then try again the "tell" 3) just a remark : use "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://unix.stackexchange.com/questions/138740/tar-dev-st0-cannot-write-input-output-error the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. output error Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top tar: /dev/st0: Cannot write: Input/output error up vote 3 down vote favorite When we attempt to use tar to write data to an LTO-5 tape, we get the input output error following error. The device starts to write, and then fails. See the tar command and output, followed by the dmesg output. I included the mt status as well. Any help is appreciated. This is an Ultrium 3280 LTO5 drive connected through a SAS interface on RHEL 6. We tried a second drive, and second tape. These are brand new tapes, and new drives. Both of the following commands run without any issues. sudo mt -f /dev/st0 stsetoptions scsi2logical sudo mt -f /dev/st0 erase mt status provides the following sudo mt -f /dev/st0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x58 (no translation). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN When we attempt to write some output to the drive, we get the following. The device acts as if it is writing, lights start flashing and starts making noise. sudo tar cvf /dev/st0 /vader tar: Removing leading `/' from member names /vader/ /vader/data0905a-data0906/ /vader/data0905a-data0906/data0905a-FINAL/ /vader/data0905a-data0906/data0905a-FINAL/data0905a.trk /vader/data0905a-data0906/data0905a-FINAL/plots/ /vader/data0905a-data0906/data0905a-FINAL/plots/0905A_trak.ps /vader/data0905a-data0906/data0905a-FINAL/plots/0905A_trak.jpg /vader/data0905a-data0906/data0905a-FINAL/das/ /vader/data0905a-data0906/data0905a-FINAL/das/uw/ /vader/data0905a-data0906/data0905a-FINAL/das/uw/0905tmp.tar /vader/data0905a-data0906/data0905a-FINAL/das/