LinuxQuestions.org
Review your favorite Linux distribution.
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 09-16-2011, 06:20 AM   #1
NickHi
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Rep: Reputation: 0
Help with LTO5 Tape Drive Not Working


Hi,
I have a Quantum LTO5 Tape Drive connected to a LSI SAS HBA 9211-4i controller card in an ASUS P5Q Motherboard. I'm running Ubuntu 10.04, kernel 2.6.32-30. I'm able to see the drive and get status using mt -f /dev/st0 status. However when I try and write to the drive for backup it fails. I use 'tar -cvf /dev/st0 xxx', where xxx is the path to files I want to tar. The unsint starts to write to tape then simply stops, all the lights flash on the Tape Drive and it whirrs the tape around for a couple of minutes. In the meantime tar returns with

tar: /dev/st0: Cannot write: Input/output error
tar: Error is not recoverable: exiting now

I have tested the same configuration and setup under windows (I can dual boot the machine) and the drive runs all the Quantum tests perfectly fine giving about 140MBs throughput. So I'm convinced it's not the hardware just my configuration or drivers.

The /etc/stinit.def file is as follows:
# This file contains example definitions for different kinds of tape
# devices.
#
# You can find some examples in /usr/share/doc/mt-st/examples.
#
# Common definitions to be applied to all tape devices
# (This is the driver's default)
#{buffer-writes read-ahead async-writes}
# HP Ultrium 5-SCSI
manufacturer=QUANTUM model= "ULTRIUM 5" {
scsi2logical=1
can-bsr=1
auto-lock=0
two-fms=0
drive-buffering=1
buffering=1
read-ahead=1
async-writes=1
can-partitions=0
fast-eom=1
mode1 blocksize=512 density=0x58 compression=0
mode2 compression=0
mode3 compression=0
mode4 compression=0
}

Sas Driver module is as follows:
filename: /lib/modules/2.6.32-30-generic/kernel/drivers/scsi/mpt2sas/mpt2sas.ko
version: 02.100.03.00
license: GPL
description: LSI MPT Fusion SAS 2.0 Device Driver
author: LSI Corporation <DL-MPTFusionLinux@lsi.com>
srcversion: 34912072A7BDC43DAE04595
alias: pci:v00001000d00000087sv*sd*bc*sc*i*
alias: pci:v00001000d00000086sv*sd*bc*sc*i*
alias: pci:v00001000d00000085sv*sd*bc*sc*i*
alias: pci:v00001000d00000084sv*sd*bc*sc*i*
alias: pci:v00001000d00000083sv*sd*bc*sc*i*
alias: pci:v00001000d00000082sv*sd*bc*sc*i*
alias: pci:v00001000d00000081sv*sd*bc*sc*i*
alias: pci:v00001000d00000080sv*sd*bc*sc*i*
alias: pci:v00001000d00000065sv*sd*bc*sc*i*
alias: pci:v00001000d00000064sv*sd*bc*sc*i*
alias: pci:v00001000d00000077sv*sd*bc*sc*i*
alias: pci:v00001000d00000076sv*sd*bc*sc*i*
alias: pci:v00001000d00000074sv*sd*bc*sc*i*
alias: pci:v00001000d00000072sv*sd*bc*sc*i*
alias: pci:v00001000d00000070sv*sd*bc*sc*i*
depends: scsi_transport_sas
vermagic: 2.6.32-30-generic SMP mod_unload modversions 586
parm: logging_level: bits for enabling additional logging info (default=0)
parm: max_lun: max lun, default=16895 (int)
parm: max_queue_depth: max controller queue depth (int)
parm: max_sgl_entries: max sg entries (int)
parm: msix_disable: disable msix routed interrupts (default=0) (int)

Any thoughts or suggestions ?
Nickhi
 
Old 09-16-2011, 08:52 AM   #2
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 98

Rep: Reputation: 3
Try a blocksize of 0.

test with:

# mt -f /dev/st0 setblk 0

Then try your tar command.
 
Old 09-16-2011, 11:00 AM   #3
NickHi
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

I tried adjusting both the Blocksize in the /etc/stinit.def file and using mt command as sugested but sadly the result is still the same!
 
Old 09-16-2011, 11:37 AM   #4
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 98

Rep: Reputation: 3
Anything useful from dmesg?
 
Old 09-16-2011, 11:54 AM   #5
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 98

Rep: Reputation: 3
By the way, Quantum LTFS supports your HBA but not specifically Ubuntu. You could try compiling the source on your system.
 
Old 09-22-2011, 05:41 AM   #6
NickHi
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I removed the mt-st package and all started working with just the mt package. I'm now able to create 'tar' files on tape etc. I've also managed to build the LTFS from source for my disto and have successfully mounted the drive and can read/write to the tape.

Thanks blueh2o for your interest and support. As an aside I have a number of LSI Raid Controllers and HBA's but only the 9211 cards seem to work correctly with LTFS. Any thoughts?
 
Old 09-22-2011, 08:05 AM   #7
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 98

Rep: Reputation: 3
Quantum have a list of supported controllers.
 
  


Reply


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
[SOLVED] Script to Detect whether tape exist in tape drive or not dctw Linux - General 3 12-17-2010 03:04 AM
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 07:13 AM
Check tape drive availability (full tape) TripleOne Linux - Server 0 02-12-2009 03:45 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
HP DDS2 Tape drive working? mastahnke Linux - Hardware 2 05-16-2003 03:50 PM

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

All times are GMT -5. The time now is 09:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration