Mt Dev St0 Tell Dev St0 Input Output Error
Contents |
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 tar /dev/st0 cannot write input/output error About Us Learn more about Stack Overflow the company Business Learn more about
Linux Tape Drive Input Output Error
hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is dev nst0 input output error 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 tar cannot read: input/output error 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 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
Tar: Cannot Write: Input/output Error
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 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
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 -f /dev/st0 status /dev/st0: Input/output error mt -f /dev/nst0 status /dev/nst0: Input/output error when I run command without a tape in I get: mt -f /dev/nst0 status SCSI 2 tape drive: File 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 i686 GNU/Linux ______________________________________________________________________________________ Command http://serverfault.com/questions/125807/hp-storageworks-448-tape-drive-input-output-error-with-ubuntu dmesg | grep scsi, shows: scsi: ***** BusLogic SCSI Driver Version 2.1.16 of 18 July 2002 ***** scsi: Copyright 1995-1998 by Leonard N. Zubkoff
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://unix.stackexchange.com/questions/138740/tar-dev-st0-cannot-write-input-output-error 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 Unix https://www.experts-exchange.com/questions/21562855/With-a-MT-tell-command-and-others-get-dev-tape-Input-output-error.html & 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 output error systems. 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 input output error get the 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-
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > With a MT tell command and others get /dev/tape: Input/output error Want to Advertise Here? Solved With a MT tell command and others get /dev/tape: Input/output error Posted on 2005-09-15 Linux 1 Verified Solution 6 Comments 2,577 Views Last Modified: 2012-06-27 /dev/tape is /dev/nst0 [root@orsvr]# mt tell /dev/tape: Input/output error mt status looks ok ? [root@orsvr]# mt status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x0 (default). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN [root@orsvr]# I can backup to tape ( seems ok ) but get errors when checking files on tape.. Ive restarted box and still same... Any ideas? cheers! Stephen 0 Question by:stephengriffin Facebook Twitter LinkedIn Google LVL 6 Best Solution bymakhan Hi, You must rewind the tape before any other command to work Kindly use the command mt rewind Regards, makhan Go to Solution 6 Comments LVL 1 Overall: Level 1 Message Author Comment by:stephengriffin2005-09-15 FYI: [root@cregorsvr aftermo]# tar -tzf /dev/nst0 gzip: stdin: not in gzip format tar: Child died with signal 13 tar: Error exit delayed from previous errors [root@cregorsvr aftermo]# 0 LVL 16 Overall: Level 16 Linux 6 Message Expert Comment by:JammyPak2005-09-16 from the mt man page: tell (SCSI tapes) Tell the current block on tape. This operation is available on some Tandberg and Wangtek streamers and some SCSI-2 tape drives. I'm guessing that maybe your drive doesn't support tha