Solved

Setting up Tape drive in fedora

Posted on 2004-09-27
12
327 Views
Last Modified: 2013-12-15
Hi EE,  I have a linux box running fedora core2 .  I have added a scsi controller and a tape drive. (DDs3)  When I run hardware browser, the tape drive shows up as /dev/st0 .  When I run kdat however it cant read the drive.  Can anyone tell me how to go about setting this up
0
Comment
Question by:aduhwale
  • 6
  • 6
12 Comments
 
LVL 4

Expert Comment

by:EinarTh
ID: 12171745
uhmm... have you gone into kdat's settings and set the drive option there to /dev/st0 (or created a /dev/tape -> /dev/st0 symlink)?
0
 
LVL 2

Author Comment

by:aduhwale
ID: 12177240
Hi, I went into kdat's settings and set the option there but didnt work,  I havent done a symlink how do I do that?
0
 
LVL 4

Expert Comment

by:EinarTh
ID: 12180570
ln -s /dev/st0 /dev/tape

There is a very old tape backup program called taper that I used in the days of yore (command line tool). it's very simple in its basic form, so if that one works, you'll at least know it's kdat thats bugging you.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 2

Author Comment

by:aduhwale
ID: 12211490
Hi , tried the symlink. nothing happening.  Tried dmesg|more to see the scsi entry, here it is

SCSI subsystem initialized

scsi0 : AdvanSys SCSI 3.3GJ: PCI Ultra: IO 0xB800-0xB80F, IRQ 0x9

  Vendor: ARCHIVE   Model: Python 04106-XXX  Rev: 7550

  Type:   Sequential-Access                  ANSI SCSI revision: 02

st: Version 20040318, fixed bufsize 32768, s/g segs 256

Attached scsi tape st0 at scsi0, channel 0, id 0, lun 0

st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575


tried using tar directly
tried mt status and it doesnt find /dev/tape, tried -f /dev/st0 still nothing.  Terribly stuck here....
0
 
LVL 4

Expert Comment

by:EinarTh
ID: 12216006
Post the output from the following commands:
ls -l /dev/st0
mt -f /dev/st0 status
mt -f /dev/st0 rewind

... You are doing this as root, right?
0
 
LVL 2

Author Comment

by:aduhwale
ID: 12216201
root@lunmail2 root]# ls -l /dev/st0
crw-rw----  1 root disk 9, 0 Feb 23  2004 /dev/st0
[root@lunmail2 root]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@lunmail2 root]# mt -f /dev/st0 rewind
/dev/st0: No such device or address
[root@lunmail2 root]#
                                                                               
0
 
LVL 4

Expert Comment

by:EinarTh
ID: 12218852
well, I'm at a loss. The only thing I can think of is that maybe your scsi driver isn't loaded, but that doesn't really make much sense, since dmesg shows that the driver has probed the scsi bus.

Just to make sure about all this, do a 'lsmod' and post the output. Also post the make and model of your scsi card and how that driver is loaded if you have that info.

cheers.
0
 
LVL 2

Author Comment

by:aduhwale
ID: 12224152
Hi Scsi card - AdvanSys SCSI 3.3GJ: PCI Ultra: IO 0xB800-0xB80F, IRQ 0x9

output from lsmod.

Module                  Size  Used by
snd_mixer_oss          13824  2
snd_intel8x0           26280  3
snd_ac97_codec         50436  1 snd_intel8x0
snd_pcm                68872  1 snd_intel8x0
snd_timer              17156  1 snd_pcm
snd_page_alloc          7940  2 snd_intel8x0,snd_pcm
gameport                3328  1 snd_intel8x0
snd_mpu401_uart         4864  1 snd_intel8x0
snd_rawmidi            17184  1 snd_mpu401_uart
snd_seq_device          6152  1 snd_rawmidi
snd                    38372  10 snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               6112  3 snd
i830                   55856  2
parport_pc             19392  1
lp                      8236  0
parport                29640  2 parport_pc,lp
autofs4                10624  0
rfcomm                 27164  0
l2cap                  16004  5 rfcomm
bluetooth              33636  4 rfcomm,l2cap
sunrpc                101064  1
8139too                17792  0
mii                     3584  1 8139too
ipt_REJECT              4736  1
ipt_state               1536  8
ip_conntrack           24968  1 ipt_state
iptable_filter          2048  1
ip_tables              13440  3 ipt_REJECT,ipt_state,iptable_filter
floppy                 47440  0
sg                     27552  0
st                     31132  0
scsi_mod               91344  2 sg,st
microcode               4768  0
dm_mod                 33184  0
uhci_hcd               23708  0
ehci_hcd               21896  0
button                  4504  0
battery                 6924  0
asus_acpi               8472  0
ac                      3340  0
ipv6                  184288  10
ext3                  102376  4
jbd                    40216  1 ext3
raid1                  10240  5
---------------------------------------------------------------------


I dont know how to get the driver info.   could you help there?
0
 
LVL 4

Accepted Solution

by:
EinarTh earned 250 total points
ID: 12224999
hmm... why isn't your advansys module there?

Try (as root of course) to:
# modprobe advansys
# mt -f /dev/st0 status

and see what happens
0
 
LVL 2

Author Comment

by:aduhwale
ID: 12225561
[root@lunmail2 root]# modprobe advansys
[root@lunmail2 root]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
[root@lunmail2 root]#


Ur a star!.  After running this, the tape drive worked.  Is there anything I need to do to ensure I dont lose this after I reboot?

0
 
LVL 4

Expert Comment

by:EinarTh
ID: 12228388
Well, different distros use different mechanisms for this stuff and I have never used fedora myself so I dont know the correct way to do this. Fedora propably _does_ load it at boot time, but if it remains unused for a long time, it may unload it.

Anyhoo, you can manually load the module during boot (if it doesn't happen) by adding 'modprobe advansys' to the correct rc file in /etc/rc.d/

Again, I dont know fedora, but its propably called rc.local or rc.boot or rc.sysinit.... You catch my drift.

Furthermore, your propably going to want to script your backups, so adding the modprobe line there shouldnt be a big deal

cheers.
0
 
LVL 2

Author Comment

by:aduhwale
ID: 12235021
Oki doki!  Thanks again!  
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question