LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-28-2003, 06:12 AM   #1
davidli_fr
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
Help me for add tape driver


Hi All,

I've got the problem for the tape driver.

In my computer there is a raid controller:

ATA RAID 1210SA

And I've installed redhat 8.0

I add a scsi adapter:

Adaptec SCSI Card 29160.

And connected with tape divece:

HP SureStore DAT40.

When I reboot the machine it recognize Card but not Tape.

The SCSI ID of the Adaptec is 7 (default) and the SCSI ID of the Tape is 3.

When I look the drivers:

$less /proc/scsi/scsi, it shows:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ADAPTEC Model: RAID 1 Rev: 1.0
Type: Direct-Access ANSI SCSI revision: ffffffff



Anyone can help me ?

Thanks,

David
 
Old 10-28-2003, 06:58 AM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
You will need module "st" for tape, though your machine does have to recognize the device first. Are there any other directories within /proc/scsi. I have /proc/scsi/aic7xxx and /proc/scsi/sym53c8xx pertaining to the drivers for my two scsi cards, the boards themselves are not listed in /proc/scsi/scsi. It does seem though that your problem could within the adaptec bios which perhaps is defining a raid device separate from the card. Can you get into the bios (usually with adaptec using cntl-a at bootup) and see what you have for setup and if the tape device is recognized there? A tape device should read "Type: Sequential-Access" in /proc/scsi/scsi.
 
Old 10-28-2003, 07:44 AM   #3
davidli_fr
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much

My problem is if at "Configure/View Host Adapter Settings" I select number 7 as "Host SCSI Adapter ID", at the page "SCSI Disk Utilities" there's only "Adaptec SCSI Card 29160" at ID#: 7.

But if I select the number 3 as "Host SCSI Adapter ID" (The number ID set at the Tape driver), I found "Adaptec SCSI Card 29160" at ID#: 3 and "HP C5683A" at ID# 11.

And in the directory /proc/scsi/ in two cases are:

total 0
dr-xr-xr-x 2 root root 0 Oct 28 14:41 AAR1210
dr-xr-xr-x 2 root root 0 Oct 28 14:41 ide-scsi
-r--r--r-- 1 root root 0 Oct 28 14:41 scsi

And I don't know how to mount the tape driver

David
 
Old 11-03-2003, 12:28 PM   #4
bweyrauch
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 4

Rep: Reputation: 0
See the thread under Redhat that I answered. Basically, you have to
"mkinitrd" to get the driver loaded correctly during boot. If you search the forum for "scsi tape", my earlier response is listed.
 
Old 11-03-2003, 02:02 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,457

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
The controller is usually ID #7. You can not have the controller and the tape drive set to the same ID. During the boot if the SCSI controller is set to scan the bus you should see the tape drive being recognized. Make sure the bus is terminated correctly.

You can use modprobe to load the tape driver, it isn't necessary to load st during boot.

modprobe st
 
Old 11-05-2003, 04:55 AM   #6
davidli_fr
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much,

I think the probem is hardware and system, the card adapter doesn't recognize the tape driver.

The resaut of dmesg is:

dmesg
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fffe000 (usable)
BIOS-e820: 000000000fffe000 - 0000000010000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
On node 0 totalpages: 65534
zone(0): 4096 pages.
zone(1): 61438 pages.
zone(2): 0 pages.
Kernel command line: ro root=LABEL=/ hdb=ide-scsi
ide_setup: hdb=ide-scsi
Initializing CPU#0
Detected 794.845 MHz processor.
Speakup v-1.00 CVS: Tue Jun 11 14:22:53 EDT 2002 : initialized
Console: colour VGA+ 80x25
Calibrating delay loop... 1577.21 BogoMIPS
Memory: 252840k/262136k available (1326k kernel code, 6868k reserved, 999k data, 212k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 4096 (order: 3, 32768 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=31860 max_file_pages=0 max_inodes=0 max_dentries=31860
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfc7de, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Discovered primary peer bus 01 [IRQ]
PCI: Using IRQ router ServerWorks [1166/0200] at 00:0f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS not found.
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
oprofile: mapping APIC.
oprofile: APIC was already enabled
oprofile 0.2 loaded, major 254
block: 480 slots per queue, batch=120
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SvrWks OSB4: IDE controller on PCI bus 00 dev 79
SvrWks OSB4: chipset revision 0
SvrWks OSB4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x08b0-0x08b7, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0x08b8-0x08bf, BIOS settings: hdcio, hddio
hda: CRD-8482B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide-floppy driver 0.99.newide
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 347k freed
VFS: Mounted root (ext2 filesystem).
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
PCI: Found IRQ 10 for device 00:04.0
PCI: Sharing IRQ 10 with 00:04.0
scsi0 : Vendor: ADAPTEC Model: AAR-1210SA
Vendor: ADAPTEC Model: RAID 1 Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 320172033 512-byte hdwr sectors (163928 MB)
Partition check:
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 sda12 sda13 >
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 212k freed
XD: Loaded as a module.
Trying to free nonexistent resource <00000320-00000323>
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,10), internal journal
Adding Swap: 4088500k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,8), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,7), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,6), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,5), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,13), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,9), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,11), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
hda: ATAPI 48X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ohci1394: pci_module_init failed
ip_tables: (C) 2000-2002 Netfilter core team
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Found IRQ 9 for device 00:02.0
IRQ routing conflict for 00:02.0, have irq 11, want irq 9
divert: allocating divert_blk for eth0
eth0: Intel Corp. 82557/8/9 [Ethernet Pro 100], 00:B00:AA:A3:7E, IRQ 11.
Receiver lock-up bug exists -- enabling work-around.
Board assembly 07195d-000, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x04f4518b).
Receiver lock-up workaround activated.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
mtrr: Serverworks LE detected. Write-combining disabled.
mtrr: your processor doesn't support write-combining
mtrr: Serverworks LE detected. Write-combining disabled.
mtrr: your processor doesn't support write-combining
mice: PS/2 mouse device common for all mice
cdrom: This disc doesn't have any tracks I recognize!

So maybe the two cards and the mother board scsi have the problem ?

Tanks for the help !

David
 
Old 11-05-2003, 05:05 PM   #7
bweyrauch
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 4

Rep: Reputation: 0
When I reviewed your dmesg I didn't see the driver being loaded. If the Adaptec 29160 is installed correctly with its driver, you should see a directory in /proc/scsi with the name "aic7xxx". This is the proper driver for the Adaptec 29160. For my system (RH9, same adaptec board), I had to perform the following manula step to get the driver to load at boot:

"mkinitrd /boot/initrd-<kernel-version>.img <kernel-version>"

I performed this AFTER kudzu had found the board and added it to the system configuration. You can verify that the board was detected by checking /etc/modules.conf for a line like "alias scsi_hostadapter1 aic7xxx".
mkinitrd uses the contents of modules.conf to select drivers to load at boot time.

If this works, you should see your tape drive listed when you "cat /proc/scsi/scsi" Good luck!
 
Old 11-13-2003, 04:05 AM   #8
davidli_fr
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much !

With your precious help, we have the tape driver installed !

Now I'm going to make the planning of backup.

Is anyone knows a good tool for backup to Tape driver ?

My plan is:

1. A complate backup every month
2. A complate backup every week
3. A incremental backup every day

And I also need to know how to make the backup for the other computers by local network.

Thanks again for your help !

David
 
Old 11-13-2003, 04:12 AM   #9
d_deane
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
Hi
I am not sue if this helps but most tape drives have DIP swithces on them for operating systems. I know there were some problems with Seagate tapes and SCO. So check manual and appendums and even HP web site for changes.
 
Old 11-13-2003, 06:48 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,457

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
For backup applications look at www.freshmeat.net.
 
Old 11-13-2003, 10:40 AM   #11
bweyrauch
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 4

Rep: Reputation: 0
If you don't mind spending a little money, I am happy with Yosemite Tapeware for Linux.
 
Old 11-14-2003, 03:13 AM   #12
davidli_fr
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very mmuch !

I've found there's "amanda" installed by redhat 8.0,and going to try to use it.

Maybe someone has used it ?

David
 
  


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
Any project on Virtual Tape DRIVER? macarthor Programming 4 10-18-2005 02:12 AM
automount a tape driver dominant Linux - Newbie 2 02-27-2004 05:52 AM
Can I share a tape driver with samba?? duration Linux - Newbie 0 02-09-2004 01:26 AM
how to add a scsi tape in R.H 8.0 izik_m Red Hat 1 10-29-2003 10:11 PM
how to add tape drive to redhat 8.0? chanys Linux - General 2 03-05-2003 04:34 PM

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

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