LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-18-2011, 08:59 AM   #1
pierre_lg
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
FC Tape Drive: /dev/st0: Input/output error


Dear,
I'm trying to connect some FC Tape drives to a Linux system and I'm having some difficulties.
first of all, I'm runing Linux version 2.6.9-89.ELsmp (Red Hat 3.4.6-11)

My FC HBA is well recognized:
kernel: SCSI subsystem initialized
kernel: Emulex LightPulse Fibre Channel SCSI driver 8.0.16.46
kernel: Copyright(c) 2003-2008 Emulex. All rights reserved.
kernel: ACPI: PCI Interrupt 0000:00:0e.0[A] -> GSI 18 (level, low) -> IRQ 201
kernel: lpfc 0000:00:0e.0: 0:1303 Link Up Event x1 received Data: x1 x1 x0 x2 x0 x0
kernel: lpfc 0000:00:0e.0: 0:1305 Link Down Event x2 received Data: x2 x20 x1000 x0 x0
kernel: lpfc 0000:00:0e.0: 0:1303 Link Up Event x3 received Data: x3 x1 x0 x2 x0 x0
kernel: scsi0 : Emulex LP7000 1Gb PCI Fibre Channel Adapter on PCI bus 00 device 70 irq 201

and I can see my tape drives correctly:
>cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: 03590E1A Rev: E32E
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 00 Lun: 01
Vendor: IBM Model: 03590E1A Rev: E32E
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 00 Lun: 02
Vendor: IBM Model: 03590E1A Rev: E32E
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 00 Lun: 03
Vendor: IBM Model: 03590E1A Rev: E32E
Type: Sequential-Access ANSI SCSI revision: 03

And in the var.log.messages, the tests of the tape drives look OK:
kernel: Vendor: IBM Model: 03590E1A Rev: E32E
kernel: Type: Sequential-Access ANSI SCSI revision: 03
kernel: Vendor: IBM Model: 03590E1A Rev: E32E
kernel: Type: Sequential-Access ANSI SCSI revision: 03
kernel: Vendor: IBM Model: 03590E1A Rev: E32E
kernel: Type: Sequential-Access ANSI SCSI revision: 03
kernel: Vendor: IBM Model: 03590E1A Rev: E32E
kernel: Type: Sequential-Access ANSI SCSI revision: 03
kernel: st: Version 20040403, fixed bufsize 32768, s/g segs 256
kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 1
kernel: Attached scsi generic sg1 at scsi0, channel 0, id 0, lun 1, type 1
kernel: Attached scsi generic sg2 at scsi0, channel 0, id 0, lun 2, type 1
kernel: Attached scsi generic sg3 at scsi0, channel 0, id 0, lun 3, type 1
kernel: Attached scsi tape st0 at scsi0, channel 0, id 0, lun 0
kernel: st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 4294967295
kernel: Attached scsi tape st1 at scsi0, channel 0, id 0, lun 1
kernel: st1: try direct i/o: yes (alignment 512 B), max page reachable by HBA 4294967295
kernel: Attached scsi tape st2 at scsi0, channel 0, id 0, lun 2
kernel: st2: try direct i/o: yes (alignment 512 B), max page reachable by HBA 4294967295
kernel: Attached scsi tape st3 at scsi0, channel 0, id 0, lun 3
kernel: st3: try direct i/o: yes (alignment 512 B), max page reachable by HBA 4294967295

The issue that I have is when I try to access those devices, I've got the following error:
>mt -f /dev/st0 status
/dev/st0: Input/output error
Same error occured if tape is loaded or drive empty.

I can see in the /var/log/messages
kernel: scsi0 (0,0,0) : reservation conflict

Do you have any idea of the problem ?
How to solve it ?

Thanks very much for your help.

Best regards,
 
Old 11-18-2011, 06:38 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Reservation conflict means that the tape drives are in use by another device. Once that device is done it should release the reservation.
 
Old 11-21-2011, 02:04 AM   #3
pierre_lg
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your help.
But the drives are direct attached to the Linux server... so it is impossible that another device has reserve those tape drives !!!
After connecting the tape drives to the Linux, should I run a command or something else to make the drives available ?

Thanks one more time for your support.

Best regards,
 
Old 11-21-2011, 04:32 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
This is RHEL 3.4 ? right
the very old 3.4
the no longer supported RHEL3

did you ask your red hat rep ?
 
Old 11-21-2011, 04:52 AM   #5
pierre_lg
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
No, no... we are using RedHat $ Update 8.

Regards,
 
Old 11-21-2011, 06:02 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Quote:
Originally Posted by pierre_lg View Post
Thanks for your help.
But the drives are direct attached to the Linux server... so it is impossible that another device has reserve those tape drives !!!
After connecting the tape drives to the Linux, should I run a command or something else to make the drives available ?
Why do you say it is impossible? Just because the device is no longer connected does not mean that it did not set a reservation in the past. Perhaps you moved the cable without properly shutting down the application. You can clear a reservation using sg3_utils (either sg_reset or sg_persist depending on the reservation type).
 
  


Reply



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
[SOLVED] /dev/tape /dev/sg0 /dev/st0 problems w/ scsi tape drive hubiedo Linux - General 1 10-18-2010 11:04 AM
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 12:51 PM
Hp Tape Drive Input/Output Error ammar_linux Linux - Newbie 0 12-31-2007 02:58 AM
tar on /dev/st0 input/output error Alkisx Slackware 5 04-17-2006 11:18 AM
/dev/st0 : Input/Output error sharonenoch Linux - Hardware 1 02-10-2006 12:44 PM

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

All times are GMT -5. The time now is 04:08 PM.

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