LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-22-2008, 09:05 PM   #1
penguinboy08
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Rep: Reputation: 0
Arrow IBM 3590 Tape Drive, Ubuntu Sever, MT read/write error


I have a IBM 3590-H1A tape drive, and I'm trying to read some tapes.

I'm running the lastest (8.10) Ubuntu server edition, a fresh install.

If I run
Code:
sudo mt -f /dev/st0 status
I get:

Code:
drive type = 114
drive status = 0
sense key error = 0
residue count = 0
file number = 0
block number = 0
mt: /dev/st0: rmtclose failed: Input/output error

Then when I try
Code:
sudo tar -xvf /dev/st0
, I get:

Code:
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

So basically the same error. Is there anything I can do?
 
Old 12-23-2008, 12:15 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
It looks like you have a blank tape.









Ken Tyler
Project Engineer

--
Pantek, Inc. - http://www.pantek.com/ - info@pantek.com
1-877-LINUX-FIX - Expert Open Source Technical Support
2008 Inductee to the prestigious Weatherhead 100

Last edited by kentyler; 12-23-2008 at 12:16 PM.
 
Old 12-23-2008, 03:48 PM   #3
penguinboy08
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Definitly not a blank tape. I tried several others that are supposed to contain data, and they all output the same error.


Any other ideas?
 
Old 12-23-2008, 05:05 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
If you're trying to run:

Code:
sudo tar -xvf /dev/st0
You need to actually specify some files to try and dump to the tape.

Code:
sudo tar -xvf /dev/st0 /some/path/to/file
Do you get the same output if you try using cpio instead of mt? Also make sure the tape itself isn't write protected, you know, the little switch to protect the tape from getting overwritten.
 
Old 12-23-2008, 05:18 PM   #5
penguinboy08
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
The tapes are all write protected, is this a bad thing? I'm only trying to get data FROM the tapes, I denfinitly do not want to write onto them.

Not sure what the arguements for cpio would be, any help?

Also, that alternate tar command gave the same error.


Thanks for you time!
 
Old 12-24-2008, 06:41 AM   #6
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Yes you need to specify the files to restore or a wildcard.

tar -zxvf /dev/st0 * or a /path/file
 
Old 01-01-2009, 04:42 PM   #7
penguinboy08
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the reply kentyler, but when I run

Code:
tar -zxvf /dev/st0 *
All I get is:

Code:
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Pattern matching characters used in file names. Please,
tar: use --wildcards to enable pattern matching, or --no-wildcards to
tar: suppress this warning.
tar: *: Not found in archive
tar: Error exit delayed from previous errors
Any more ideas?
 
Old 01-01-2009, 05:19 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,640

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Some additional ideas.
IMHO you might have a hardware problem. You can try listing the contents
tar -tvf /dev/st0

Might want to try testing the drive by reading/writing with a blank tape.

Was the data written using the same drive?
 
Old 01-01-2009, 07:59 PM   #9
penguinboy08
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Now I'm trying the tape drive with a fresh install of Red Hat Enterprise Edition 4.

More info, running "IBMtapeutil -f /dev/st0 status" returns the following;

Code:
Generic ANSI SCSI-2 tape drive
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN
Could it be that the tape IS actually blank, (as suggested above)? I'm trying several tapes that are supposed to have data, so there might be a tiny tiny chance that they are all be blank.


Running "tar -tvf /dev/st0" returns:

Code:
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
Much as before.


Quote:
Was the data written using the same drive?
No, the tapes come from an external party, we don't know what model tape drive they were using.
 
Old 01-05-2009, 07:55 AM   #10
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Test the tape

Add files to the tape to see if the hardware works then try to restore the files.
 
Old 01-17-2009, 02:26 AM   #11
dlethe
LQ Newbie
 
Registered: Dec 2004
Location: Texas
Distribution: Many
Posts: 2

Rep: Reputation: 0
Lightbulb IBM 3590 Errors - diagnostics

Looks like you need to run some diagnostics. There is a spec and software called TapeAlert. There is a $90 software product from santools that runs full diagnostics, monitors tape/autochangers, and gives you error results and such. The code is ported to LINUX on 32 and 64-bit chips, links to some tape-related diag screen dumps are http://www.santools.com/smart/unix/m...erttesting.htm or just http://www.santools.com/smart/unix/manual for the main page.

I know it will work on IBM 3590s.
 
Old 02-14-2009, 09:44 AM   #12
jkieth
LQ Newbie
 
Registered: Feb 2009
Location: Tempe AZ
Posts: 5

Rep: Reputation: 0
I realize this is a fairly old post and you've probably rectified the problem by now but maybe you could call up the manufacturer. Usually the systems come with lifetime tech support and I'm sure they could help you out with trying to get this data read. I personally am annoyed by most call in tech services but if you can get past the annoying part they can usually figure it out for you. For more information on the IBM 3590 H1A model you can visit our site at http://www.cpuinc.com/3590-tape-driv...1-tape-drives/. You can also email us with tech support questions at techsupport@cpuinc.com. I hope this helps.

Last edited by jkieth; 02-14-2009 at 09:59 AM. Reason: additional references for support
 
  


Reply

Tags
drive, ibm, mt, server, tape, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Write / Read a DAT (DDS 3 / 4) tape label Zxarr Linux - Software 1 02-06-2008 08:36 PM
Attaching IBM Magstar 3590-E11 to Linux RHEL 4 budiss Linux - Hardware 1 01-23-2008 07:03 PM
IBM tape Drive problem brodeydog Linux - Newbie 10 04-27-2005 10:54 PM
IBM Tape drive Issue kbrooks Linux - Hardware 1 03-30-2005 07:37 PM
IBM Magstar 3590 on Linux ggg Linux - Hardware 0 10-04-2002 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration