LinuxQuestions.org
Visit Jeremy's Blog.
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, 07: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, 08:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,964

Rep: Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403
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 08:16 PM.
 
Old 10-04-2017, 09:36 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,594

Rep: Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164
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, 06: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 02:56 PM
LTO-2 tape devices not showing up in /proc/scsi/scsi file datastor Red Hat 0 03-16-2009 05:11 PM
Need scsi command to get serial number of a scsi tape romeshs Programming 1 09-04-2006 06:24 AM
SCSI Tape Device Append Issue sbctec Linux - Hardware 3 05-05-2003 05:28 PM

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

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