LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-27-2004, 05:54 AM   #1
sbalasuriya
LQ Newbie
 
Registered: Apr 2004
Posts: 17

Rep: Reputation: 0
SCSI tape devices


Hi all,

In devices.txt;

9 char SCSI tape devices
0 = /dev/st0 First SCSI tape, mode 0
1 = /dev/st1 Second SCSI tape, mode 0
...
32 = /dev/st0l First SCSI tape, mode 1
33 = /dev/st1l Second SCSI tape, mode 1
...
64 = /dev/st0m First SCSI tape, mode 2
65 = /dev/st1m Second SCSI tape, mode 2
...
96 = /dev/st0a First SCSI tape, mode 3
97 = /dev/st1a Second SCSI tape, mode 3
...
128 = /dev/nst0 First SCSI tape, mode 0, no rewind
129 = /dev/nst1 Second SCSI tape, mode 0, no rewind
...
160 = /dev/nst0l First SCSI tape, mode 1, no rewind
161 = /dev/nst1l Second SCSI tape, mode 1, no rewind
...
192 = /dev/nst0m First SCSI tape, mode 2, no rewind
193 = /dev/nst1m Second SCSI tape, mode 2, no rewind

In above device descriptions, what does it mean by "mode" ?
What are "mode 0", "mode 1", "mode 2" ?

Among above devices what is the tape with compress enabled ?

Thanks in advance.

-San
 
Old 09-27-2004, 01:59 PM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
I've used /dev/st0 as the tapedevice and to control it I used a combination
of mt (the tapedrive) and mtx (the changer as a device /dev/sg3 )

the compression I handled with the z flag (of the j of y for bzip2)

tar zcf /dev/st0
tar zxf /dev/st0

The advantage: it works very easy, but I can imagine that the correct
/dev/ device might be more compatible with other solutions and maybe
there exists even some compression in hardware.

The mt and mtx commands have a man page that explains the usage, but
what I never discoverd is the correct way to handle the changer.

Tlowk

Last edited by tlowk; 09-27-2004 at 02:01 PM.
 
Old 09-28-2004, 03:53 AM   #3
sbalasuriya
LQ Newbie
 
Registered: Apr 2004
Posts: 17

Original Poster
Rep: Reputation: 0
About the compressing tape drive.

What I actually want to do is to export a database directly to the tape instead of writing to the disk and then writing to the tape.

I can not tell to compress while exporting.

that's why I want to write to the compressing tape.

-San
 
Old 09-28-2004, 02:14 PM   #4
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
I don't know enough about it, but what you can try as a work arount

backup to:
"| gzip -c > /someDit/somFile"

or:

another way (just a wild guess to be honest)

mkfifo /somedir/compess
cat /somedir/compress | gzip -c /dev/st0

and make the backup to /somedir/compress
 
  


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 Tape Backup bfloeagle Linux - General 12 02-07-2005 01:48 PM
SCSI Tape drive imahdi Solaris / OpenSolaris 1 01-05-2005 02:17 AM
Not able to get devices name for SCSI Tape drive - Adaptec AIC-7861 stefanhoffmann Linux - Hardware 0 11-15-2004 02:32 AM
SCSI Tape Problem mdpolaris Linux - Hardware 4 09-17-2004 01:22 PM
allow non root users add devices to /proc/scsi/scsi ? ewto Linux - Newbie 5 10-14-2003 12:36 PM


All times are GMT -5. The time now is 05:36 AM.

Main Menu
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