LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-10-2004, 08:54 AM   #1
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Rep: Reputation: 0
Problem with SCSI tape drive on RH8 machine


Hi,

I have a problem using a SCSI DAT drive (ID 4) which I have just added to a PC running RH8.

The SCSI card is an AIC-7861
The tape drive is an HP C1554 which seems to be recognised as HP C1537A.
Although the tape drive is visible in the Gnome Hardware Browser I can't use /dev/nst0 (no such device or address).
I have tried modprobe st.
The problem appears to lie in the startup (i.e. pci_module_init failed) and I have included the relevant section of /var/log/messages below. The SCSI adaptor card is the only pci card present. I would be very grateful for some help.

Thanks

nick toop


Feb 10 13:40:45 linux2 kernel: PCI: Enabling device 02:02.0 (0116 -> 0117)
Feb 10 13:40:45 linux2 kernel: PCI: Found IRQ 10 for device 02:02.0
Feb 10 13:40:45 linux2 kernel: PCI: Sharing IRQ 10 with 00:1d.2
Feb 10 13:40:45 linux2 kernel: PCI: Sharing IRQ 10 with 00:1f.1
Feb 10 13:40:45 linux2 kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
Feb 10 13:40:45 linux2 kernel: <Adaptec 2940A Ultra SCSI adapter>
Feb 10 13:40:45 linux2 kernel: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
Feb 10 13:40:45 linux2 kernel:
Feb 10 13:40:45 linux2 kernel: blk: queue c5e91814, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:41:02 linux2 kernel: Vendor: HP Model: C1537A Rev: L005
Feb 10 13:41:02 linux2 kernel: Type: Sequential-Access ANSI SCSI revision: 02
Feb 10 13:41:02 linux2 kernel: blk: queue c5e91014, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:41:02 linux2 kernel: st: Version 20020205, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Feb 10 13:41:02 linux2 kernel: Attached scsi tape st0 at scsi1, channel 0, id 4, lun 0
Feb 10 13:41:02 linux2 kernel: scsi : 1 host left.
Feb 10 13:41:02 linux2 kernel: ohci1394: pci_module_init failed
Feb 10 13:42:42 linux2 kernel: PCI: Enabling device 02:02.0 (0116 -> 0117)
Feb 10 13:42:42 linux2 kernel: PCI: Found IRQ 10 for device 02:02.0
Feb 10 13:42:42 linux2 kernel: PCI: Sharing IRQ 10 with 00:1d.2
Feb 10 13:42:42 linux2 kernel: PCI: Sharing IRQ 10 with 00:1f.1
Feb 10 13:42:42 linux2 kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
Feb 10 13:42:42 linux2 kernel: <Adaptec 2940A Ultra SCSI adapter>
Feb 10 13:42:42 linux2 kernel: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
Feb 10 13:42:42 linux2 kernel:
Feb 10 13:42:42 linux2 kernel: blk: queue c5e91614, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:42:59 linux2 kernel: scsi : 1 host left.
Feb 10 13:42:59 linux2 kernel: ohci1394: pci_module_init failed
Feb 10 13:43:30 linux2 kernel: PCI: Enabling device 02:02.0 (0116 -> 0117)
Feb 10 13:43:30 linux2 kernel: PCI: Found IRQ 10 for device 02:02.0
Feb 10 13:43:30 linux2 kernel: PCI: Sharing IRQ 10 with 00:1d.2
Feb 10 13:43:30 linux2 kernel: PCI: Sharing IRQ 10 with 00:1f.1
Feb 10 13:43:30 linux2 kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
Feb 10 13:43:30 linux2 kernel: <Adaptec 2940A Ultra SCSI adapter>
Feb 10 13:43:30 linux2 kernel: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
Feb 10 13:43:30 linux2 kernel:
Feb 10 13:43:30 linux2 kernel: blk: queue c5e91614, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:43:46 linux2 kernel: Vendor: HP Model: C1537A Rev: L005
Feb 10 13:43:46 linux2 kernel: Type: Sequential-Access ANSI SCSI revision: 02
Feb 10 13:43:46 linux2 kernel: blk: queue cf505c14, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:43:46 linux2 kernel: Attached scsi tape st0 at scsi1, channel 0, id 4, lun 0
Feb 10 13:43:46 linux2 kernel: scsi : 1 host left.
Feb 10 13:43:46 linux2 kernel: ohci1394: pci_module_init failed
 
Old 02-10-2004, 11:29 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
The SCSI controller and the tape drive are recognized.

Does /dev/st0 exist?

Are the tape drive modues loading?

/sbin/lsmod
 
Old 02-10-2004, 12:02 PM   #3
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

I am logged on as root.

ls -l /dev/st0 shows as

crw-rw---- 1 root disk 9, 0 Aug 31 2002 /dev/st0

unmame -r gives

2.4.18-27.8.0debug

/sbin/lsmod gives

Module Size Used by Not tainted
sg 36588 0
st 30768 0 (autoclean)
sr_mod 18168 0 (autoclean)
soundcore 6500 0 (autoclean)
radeon 93912 1
agpgart 43680 3
binfmt_misc 7528 1
nfsd 79920 8 (autoclean)
lockd 58096 1 (autoclean) [nfsd]
sunrpc 79324 1 (autoclean) [nfsd lockd]
parport_pc 19108 1 (autoclean)
lp 8996 0 (autoclean)
parport 37152 1 (autoclean) [parport_pc lp]
autofs 13348 0 (autoclean) (unused)
eepro100 23704 1
iptable_filter 2444 0 (autoclean) (unused)
ip_tables 15096 1 [iptable_filter]
microcode 4668 0 (autoclean)
ide-scsi 10512 0
scsi_mod 107240 4 [sg st sr_mod ide-scsi]
ide-cd 33608 0
cdrom 33728 0 [sr_mod ide-cd]
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5920 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
usbcore 77024 1 [hid usb-uhci]
ext3 70336 2
jbd 52212 2 [ext3]


and finally /sbin/lspci gives

00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 01)
00:01.0 PCI bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset AGP Bridge (rev 01)
00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 01)
00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 01)
00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corp. 82801DB ISA Bridge (LPC) (rev 01)
00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 01)
00:1f.3 SMBus: Intel Corp. 82801DB SMBus (rev 01)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon VE QY
02:02.0 SCSI storage controller: Adaptec AIC-7861 (rev 03)
02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller (rev 81)

Thanks!!!!
 
Old 02-10-2004, 12:06 PM   #4
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry, I have to leave now.... back tomorrow!
 
Old 02-10-2004, 04:51 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
At first glance everything looks ok. Have you tried writing to tape with /dev/st0?
 
Old 02-11-2004, 06:07 AM   #6
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Yes,

[root@linux2 root]# echo hello > /dev/st0
bash: /dev/st0: No such device or address
[root@linux2 root]#

Can I safely ignore the "pci_module_init failed" message in /var/log/messages?
i.e.
--------------------------------------------------------------------------------------
Feb 10 13:40:45 linux2 kernel: PCI: Enabling device 02:02.0 (0116 -> 0117)
Feb 10 13:40:45 linux2 kernel: PCI: Found IRQ 10 for device 02:02.0
Feb 10 13:40:45 linux2 kernel: PCI: Sharing IRQ 10 with 00:1d.2
Feb 10 13:40:45 linux2 kernel: PCI: Sharing IRQ 10 with 00:1f.1
Feb 10 13:40:45 linux2 kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
Feb 10 13:40:45 linux2 kernel: <Adaptec 2940A Ultra SCSI adapter>
Feb 10 13:40:45 linux2 kernel: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
Feb 10 13:40:45 linux2 kernel:
Feb 10 13:40:45 linux2 kernel: blk: queue c5e91814, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:41:02 linux2 kernel: Vendor: HP Model: C1537A Rev: L005
Feb 10 13:41:02 linux2 kernel: Type: Sequential-Access ANSI SCSI revision: 02
Feb 10 13:41:02 linux2 kernel: blk: queue c5e91014, I/O limit 4095Mb (mask 0xffffffff)
Feb 10 13:41:02 linux2 kernel: st: Version 20020205, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Feb 10 13:41:02 linux2 kernel: Attached scsi tape st0 at scsi1, channel 0, id 4, lun 0
Feb 10 13:41:02 linux2 kernel: scsi : 1 host left.
Feb 10 13:41:02 linux2 kernel: ohci1394: pci_module_init failed
------------------------------------------------------------------------------
 
Old 02-11-2004, 06:26 AM   #7
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

There is one further thing that seems strange...the contents of /proc/scsi/scsi are as follows:

cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HL-DT-ST Model: CD-RW GCE-8400B Rev: 1.02
Type: CD-ROM ANSI SCSI revision: 02
[root@linux2 root]#

Now, there is a CD ROM drive of this name in my system but it has an IDE cable and one can read MA,SL,CS (master slave,cable select) on the back of it!

The only SCSI device that the Hardware Browser shows in the Adaptec card..

AIC-7861


Thanks for you help

Nick
 
Old 02-11-2004, 11:01 AM   #8
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

There was an entry for the tape drive in /etc/modules.conf i.e.

cat /etc/modules.conf | grep aic
alias scsi_hostadapter aic7xxx

However, there was no entry in /proc/scsi.

When I typed

modprobe aic7xxx

there was quite a long delay and then the tape drive appeared useable. An entry "aic7xxx" also appeared in /proc/scsi.

Should I be using mkinitrd to remake something or other? The reply to another question here another reply seems to imply it.

Regards,

Nick Toop
 
Old 02-11-2004, 07:30 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
1394 is firewire. Do you have a firewire interface on this PC?

Based on the log linux recognized the tape drive but I do not understand why it doesn't show up under /proc/scsi.

Do you have the tape utility mt installed?
try
mt -f /dev/st0 status

http://linux.about.com/library/cmd/blcmdl1_mt.htm

Also try using the tar command to write to the tape drive. I have never used echo to write to a tape so I don't know if it is possible.

tar -cvf /dev/st0 somefile

Your CDRW is using SCSI emulation for writing so your drive will show up as a SCSI device
 
Old 02-12-2004, 11:10 AM   #10
nicktoop
LQ Newbie
 
Registered: Feb 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your help. My problem is basically solved.
All I need to do is type

modprobe scsi_adapter

to find the aic7xxx adapter and everything works OK. The only remaining question is whether I have to put a line to do this in my init sequences... and where.

Thanks again.
 
  


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 Card/Tape Drive Problem Optimistic Debian 8 03-14-2005 04:19 AM
Problem with my SCSI Tape Drive Liquid Crystal Linux - Newbie 0 05-08-2004 08:25 AM
no /dev/st0 for scsi tape on RH8.0 dkinzer Linux - Hardware 9 01-20-2004 04:30 PM
can't access tape drive in RH8.0 :( lpriyamb Linux - Software 16 10-13-2003 12:38 AM
Problem with SCSI DDS3 tape drive greenhornet Linux - General 1 07-05-2002 09:51 AM

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

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