LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-13-2001, 08:12 AM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Question SCSI Tape Backup


Has anyone ever been able to get a SCSI tape drive working in Linux? If so, what drive and do you have any documentation on it?

Are there any GUI tape backup programs for X?

Thanx!
Andy

Last edited by bfloeagle; 07-13-2001 at 08:14 AM.
 
Old 07-13-2001, 08:38 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I've always used mine with good old tar...
Code:
tar cvf /dev/st0 /someDir
... Not sure about the graphical utils. To get it working I just hooked it up, and rebooted with a kernel that has SCSI tape support.

HTH

Jamie...
 
Old 07-13-2001, 11:05 AM   #3
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
check out http://freshmeat.net/projects/kdat/ I never tried it but I seen it on freshmeat.

Last edited by cinnix; 07-13-2001 at 11:13 AM.
 
Old 07-13-2001, 12:26 PM   #4
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
Gnome???

Know of a gnome version?

(Tried installing it and it tells me it wants KDE installed (even though it is). Dont want to mess with it out of fear of destroying my system....)

Andy
 
Old 09-06-2001, 04:53 PM   #5
drauh
LQ Newbie
 
Registered: Sep 2001
Location: USA
Distribution: RedHat 7.1, RedHat 7.3, RedHat 9, RHEL WS, Fedora 2, Fedora 3, Fedora 4
Posts: 5

Rep: Reputation: 0
Hmm. I just hooked up an Adaptec 29160, and a Sony SDX-D500C AIT2 SCSI tape drive to a RH 7.1 box. The card driver seemed to be loaded by kudzu automatically, and the KDE list of devices shows the tape drive. But when I try the obvious:

# tar cvf /dev/st0 linux_22
linux_22/
linux_22/mapleibm.tar
tar: /dev/st0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now

The tape drive, however, does seem to spin up. Anything else I could be missing?

Thanks.

Appendix on the card and tape drive install:
In both cases, once I turned the machine on again after installation, the card/device was configured automagically.

Last edited by drauh; 09-07-2001 at 01:46 PM.
 
Old 09-06-2001, 10:15 PM   #6
Gavin
Member
 
Registered: Aug 2001
Location: Australia
Distribution: Fedora
Posts: 32

Rep: Reputation: 15
I'm running SUSE 7.0.

All I needed to do was install the SCSI card for the tape drive to work. I have Adaptec 29160N and a travan tape drive.
I did this by adding module aic7xxx to "INITRD_MODULES = " in the rc.config file.
Then run commands
>mk_initrd
>lilo
and reboot
test tape using "mt -f /dev/st0 retension/rewind/erase/etc"

Akeria backup is a good program and has a GUI interface for windows for remote control as well as linux graphical interface.

Gavin
 
Old 09-07-2001, 11:33 AM   #7
drauh
LQ Newbie
 
Registered: Sep 2001
Location: USA
Distribution: RedHat 7.1, RedHat 7.3, RedHat 9, RHEL WS, Fedora 2, Fedora 3, Fedora 4
Posts: 5

Rep: Reputation: 0
Very odd: I couldn't find rc.config and mk_initrd
on RedHat 7.1 (maybe it uses something else?). Anyway, I tried:

# mt -f /dev/st0 retension
/dev/st0: Input/output error

OK. So, I get no further. What to do? What the
hell, I'll re-issue the commandline:

# mt -f /dev/st0 retension

and it works! I hear the tape drive going, and
the tape running. And mt returns 0.


Anyway, thanks for the lead on Arkeia. I checked
it out, but the free version won't serve my needs:
I have one server and 6 client machines that need
to be backed up. I'm going to give Amanda a shot,
though I don't think it has a GUI.

Cheers,
--Dave
:smash:
 
Old 09-07-2001, 01:43 PM   #8
drauh
LQ Newbie
 
Registered: Sep 2001
Location: USA
Distribution: RedHat 7.1, RedHat 7.3, RedHat 9, RHEL WS, Fedora 2, Fedora 3, Fedora 4
Posts: 5

Rep: Reputation: 0
Ah, success! I was finally able to tar to tape:

# tar cf /dev/nst0
# mt -f /dev/st0 rewind
# tar tvf /dev/nst0[listing produced]

Now, are there docs about what nst0, st0, etc. mean?

Cheers,
--Dave
 
Old 09-07-2001, 06:13 PM   #9
bankrupt
LQ Newbie
 
Registered: Jul 2001
Location: Arizona
Distribution: RH7.3 Kernal 2.4.2
Posts: 22

Rep: Reputation: 15
I have been having the same exact problems that you described. Running RH7.1 Kernel 2.4.2-2 with Adaptec 29160 SCSI and 2 DLT8000 tape drives in a Qualstar TLS. What did you do to fix it?

As far as the /dev/st0 and /dev/nst0, they are rewinding and non-rewinding respectively.

If you are using amanda you will not need the nst0 from what I understand.

Bankrupt
 
Old 09-07-2001, 06:58 PM   #10
drauh
LQ Newbie
 
Registered: Sep 2001
Location: USA
Distribution: RedHat 7.1, RedHat 7.3, RedHat 9, RHEL WS, Fedora 2, Fedora 3, Fedora 4
Posts: 5

Rep: Reputation: 0
I didn't do anything to fix the problems: they just seemed to go away. My postings above describe exactly what happened:

1. I shutdown, plug SCSI card in.
2. Boot. Watch Kudzu detect the card and install the driver correctly (I assume).
3. Shutdown, plug tape drive in. (No tape loaded.)
4. Boot. No special messages about tape drive during startup sequence that I remember. But KDE's "device manager" shows the tape drive on the SCSI bus with correct SCSI ID and model.
5. Load tape. Try "tar cvf /dev/nst0 /random_dir". Saw "busy" light on drive go on. After 2 secs, tar returned with IO error, 0 bytes of nnnn bytes written.
6. Scratch head. Try "mt -f /dev/st0 retension". IO error, again. Wait 20 secs. WTF, I'll try it again. "mt -f /dev/st0 retension". WTF, it works, this time: I hear tape drive winding.
7. Try tarring a directory to /dev/nst0. It works. Try "tar tvf /dev/nst0", and it also works. Try "mt -f /dev/st0 erase": takes an age and a half, but it works.
8. Reboot with tape loaded. This time, there is a message from the SCSI card BIOS that it detected the tape drive. (This message may have been there before (with drive empty), but I just wasn't looking at the screen.)

So, there you go. I don't think I did anything. It just seemed to resolve itself. I know this is a Unix, but maybe a reboot or something may help?

Good luck.
--Dave
 
Old 02-07-2005, 09:13 AM   #11
besiz
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
first of all try to issue a command cat /proc/scsi/scsi
if you get the line that says attached scsi ...............
than you know that your scsi tape drive is attached.
next step is install kdeadmin package.
run kdat
go to config preferences on kdat
change device from /dev/tape to /dev/st0
save config
and mount the tape from kdat
write back tell me if it did work
dragon
 
Old 02-07-2005, 09:31 AM   #12
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
Not bad... 3.5 year response time... We're moving up!!!
 
Old 02-07-2005, 01:48 PM   #13
drauh
LQ Newbie
 
Registered: Sep 2001
Location: USA
Distribution: RedHat 7.1, RedHat 7.3, RedHat 9, RHEL WS, Fedora 2, Fedora 3, Fedora 4
Posts: 5

Rep: Reputation: 0
yeah. well, it fixed itself, as i said. i've been using amanda to backup to scsi tape for the last, oh, 3.5 years.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SCSI Card + Tape Backup Rembrant Linux - Hardware 6 08-18-2005 04:53 PM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 10:42 PM
How to take backup on HP SCSI tape drive? imran Linux - Hardware 0 04-15-2002 12:25 AM
SCSI tape backup problem freemancr Linux - General 0 08-03-2001 09:08 AM
2 questions(Re: backup to scsi tape drive) ascii2k Linux - General 5 07-16-2001 06:47 PM


All times are GMT -5. The time now is 05:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration