LinuxQuestions.org
Help answer threads with 0 replies.
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 08-13-2003, 03:53 AM   #1
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Rep: Reputation: 15
TAPE Problem on SCSI aic7xxx


Hi All,
I'm trying to access the tape so that I can backup. I found a documentation that "modprobe aic7xxx" should be used. After modprobe command, the tape drive worked. However, all of a sudden, I cannot access it again and again and again.

How can i resolve this problem?. How can i permanently load the "modprobe aic7xxx". What is the cause of the problem?.

Please help me!!!!!!!!!!!!!!!!!! I'm insane.


tungaw


BTW,
i'm using adaptec scsi controller card. (7xxx series).


Thank you very much.
 
Old 08-13-2003, 01:17 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Try adding this line to your /etc/modules.conf

alias scsi_hostadapter aic7xxx
 
Old 08-13-2003, 09:10 PM   #3
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks, But it was already added. actually, when i executed the "modprobe aic7xxx", there was response from the tape drive. I've already backed up some of my files into it, however, when i tried to verify if it backed up successfully, I/O error returned. I'm using "taper -T scsi" utility to backup the files.

Where do you think the problem relies? I'm tired on testing this backup tape. Hope yu can help me.....

BTW, i'm using redhat 7.2 on IBM Xseries.


Thanks again.
 
Old 08-13-2003, 10:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Sorry, I have never used taper.

You can use the tape utilities mt to check some functions and may be tar just to see if you can copy files to / from the dirive.
 
Old 08-14-2003, 03:55 AM   #5
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
I executed

$mt -f /dev/st0 status
output: SCSI 2 tape Drive
File number=-1,block number=-1,partition=0.
tape block size 0 bytes. Density code 0x0(default).
Soft error count size since last status 0
General status bits on (10000).
ION_REP_EN


I tried also "$mt eod "
Input/Output error returned.


I tried $msprobe aic7xxx, since my adapter is Adaptec.
No error returned, i checked /etc/modules.conf to check
if aic7xxx its present, and it is.

I tried $inmod aic7xxx, it said, that it was already present.

Please help me....... help...... help...... arggggggggg........

tungaw
 
Old 08-14-2003, 07:26 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What kind of tape drive do you have?

If this is a status of the drive when a tape is loaded it doesn't appear to be correct. I would expect to see some other status with a tape loaded other then just the
ION_REP_EN

like
ON_LINE or DR_OPEN or BOT
 
Old 08-15-2003, 05:31 AM   #7
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
hi,
Here are the details of the configuration of my Redhat Linux 7.2 Tape device.

$lsmod
Module Size Used by
ide-cd 27136 0 (autoclean)
cdrom 28736 0 (autoclean) [ide-cd]
soundcore 4848 0 (autoclean)
autofs 12096 0 (autoclean) (unused)
eepro100 18144 1
st 26976 0
usb-ohci 19344 0 (unused)
usbcore 54528 1 [usb-ohci]
ext3 67728 5
jbd 44480 5 [ext3]
ips 39552 6
aic7xxx 114704 0
sd_mod 11584 6
scsi_mod 98512 4 [st ips aic7xxx sd_mod]


$vi /etc/modules.conf
alias parport_lowlevel parport_pc
alias eth0 eepro100
alias scsi_hostadapter ips
alias scsi_hostadapter ips
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2 aic7xxx
alias usb-controller usb-ohci


$mt -f /dev/st0 status -------TAPE INSERTED ON DRIVE

output: SCSI 2 tape Drive
File number=-1,block number=-1,partition=0.
tape block size 0 bytes. Density code 0x0(default).
Soft error count size since last status 0
General status bits on (10000).
ION_REP_EN

$mt -f /dev/st0 status --- NO TAPE INSERTED on DRIVE

output: SCSI 2 tape Drive
File number=-1,block number=-1,partition=0.
tape block size 0 bytes. Density code 0x0(default).
Soft error count size since last status 0
General status bits on (50000).
DR_OPEN ION_REP_EN

On my /var/log/dmesg file,
Attached scsi tape st0, channel 0, id 0, lun 0.

my mt version,
mt-st v.0.6

My tape device :
SEAGATE -- STT20000N

I also tried $insmod aic7xxx, but it says that it's already loaded.

Thanks again for your help and hopefully you can help me resolve my problem. I'm trying to fix it for the last 1 week already. thanks again.


tungaw
 
Old 08-15-2003, 07:36 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Try to see if this works:
http://support.certance.com/support/...s/stdiag1.html

Does this work.
tar cvf /dev/st0 <file_name>

(Replace <file_name> with an existing file.

Change to another directory to copy file back to har drive
tar xvf /dev/st0

Just out of curiousity do these tapes require formating?
 
Old 08-17-2003, 09:01 PM   #9
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
I already tried "tar cvf /dev/st0 filename" but it isn't working. the tape drive should blink but it's not. And also i tried to extract using tar xvf /dev/st0 but still tape drive not responding.


Thanks,
tungaw
 
Old 08-17-2003, 09:22 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
This may or may not be a problem. Do you have more than one SCSI controller?

You stated your scsi modules in modules.conf:
alias scsi_hostadapter ips
alias scsi_hostadapter ips
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2 aic7xxx

I don't know anything about the tape drive but I would still expect its status to be on_line with a tape loaded.

Did you try running the diagnostics on the drive?
 
Old 08-18-2003, 05:52 AM   #11
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
There are 2 host adapter on the machine. Both are Adaptec. I haven't run the diagnostics on the drive coz the machine does not reside in our office.

I'll try to do it tomorrow and hopefully the drive will respond.
But i'm wondering why is it the drive worked when i run "modprobe aic7xxx"?. I already wrote to tape,then all of a sudden, it haven't worked again?. Do you think the drive is dirty and needs clean up?. I haven't used the drive for the last 11 months.


Thanks,
tungaw
 
Old 08-18-2003, 07:04 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It couldn't hurt to clean the drive.

Whats the ips SCSI adaptor in the modules.conf? If not needed then see what happens when you remove it.
 
Old 09-10-2003, 05:15 AM   #13
tungaw2001
Member
 
Registered: Aug 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Hi,
I took me a long time trying to verify the problem. Anyways, I've already cleaned the tape drive for a couple of days. I inserted the tape cleaner and it seems working.
I asked the person incharge to reboot the server, It worked for a while. It says it's ONLINE, but when i tried to use it again, it didn't work again.
here's the message :
$ mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, Block number =-1 partition=0
tape block size 0 bytes, Density code 0x 0
Soft error count since last status = 0
General Status bits on (10000):
IM_REP_EN

The above status is when the tape is inserted, if not its OPEN.

Thanks,
tungaw
 
Old 05-16-2004, 12:27 AM   #14
kmasaryk
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, RHEL, OS X
Posts: 23

Rep: Reputation: 15
I'm having the same exact problem with the adapter and tape drive. I've tried using an AHA-2940UW and a AHA 2940AU with the same results on each card. I only have one adapter installed at a time.

Has anyone got one of these tape drives to work successfully? The "STT20000N" is a SCSI Seagate Hornet 10/20 GB.

Thanks,
Kevin
 
  


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
scsi tape problem FC2 reelwylde Linux - Hardware 0 06-16-2005 07:42 PM
Tape Drive or perhaps the aic7xxx SCSI Disappears after reboot jokes54321 Linux - Hardware 6 12-10-2004 11:59 AM
SCSI Tape Problem mdpolaris Linux - Hardware 4 09-17-2004 12:22 PM
Debian and SCSI Tape problem?? james_peng Linux - Hardware 3 08-27-2004 01:59 PM
Problem with my SCSI Tape Drive Liquid Crystal Linux - Newbie 0 05-08-2004 07:25 AM

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

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