Solved

Setting up Tape drive in fedora

Posted on 2004-09-27
12
325 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now