LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2017, 08:05 PM   #1
terrywalters
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
scsi tape issue


Hi everyone,

My first post so probably in the wrong forum.

I need to be able to read large blocks, 2 megabyte plus, from a scsi tape drive. I always get an error.

I've been told that it might be the scatter/gather limitations in the st.c driver but it is set to 256.

Does anyone know where I might research this? All my google searches have been to no avail.

Thanks,
Terry Walters
 
Old 10-04-2017, 09:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,821

Rep: Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610
Hello and welcome to LQ.

You will need to offer a bit more information.

Did it ever work?
What command are you using?
How old is this stuff?
What is the error?

Thoughts.
https://linux.die.net/man/4/st
https://www.cyberciti.biz/faq/rhel-c...ape-blocksize/ however think it's different in modern linux.

Last edited by jefro; 10-04-2017 at 09:16 PM.
 
Old 10-04-2017, 10:36 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,998

Rep: Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683Reputation: 5683
Its been a long time and unfortunately I can not remember, lost the information (house was hit by lightning) but you need to modify the st.c driver to increase the buffer to 2MB blocks and recompile.

I used a device that wrote 1MB blocks to a DLT drive. Its one of the reasons I started using linux because by modifying the source code I could use almost any SCSI card versus windows where there was only one or two cards that the driver was already written for large blocks.
 
Old 10-05-2017, 07:01 PM   #4
terrywalters
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Turns out the problem was tape drive specific. I was blaming the scsii driver or the hba but the problem changes when I change tape drives.

Turns out each type of tape drive has a maximum block size that it will allow.

Thanks for your thoughts, they did make me think enough to find the answer.
 
  


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
SCSI Tape Drive DAT72 issue on solaris10 sparc h@foorsa.biz Solaris / OpenSolaris 6 07-10-2009 03:56 PM
LTO-2 tape devices not showing up in /proc/scsi/scsi file datastor Red Hat 0 03-16-2009 06:11 PM
Need scsi command to get serial number of a scsi tape romeshs Programming 1 09-04-2006 07:24 AM
SCSI Tape Device Append Issue sbctec Linux - Hardware 3 05-05-2003 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 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