LinuxQuestions.org
Review your favorite Linux distribution.
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 05-05-2003, 12:08 PM   #1
sbctec
LQ Newbie
 
Registered: May 2003
Location: Connecticut
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
Exclamation SCSI Tape Device Append Issue


I have an external HP DDS-3 Device hanging off my Redhat 7.2 Box. I've spent a considerable amount of time developing an in-house backup system (script) because I refuse to use a proprietary package. Plus, this makes it easier to move files from one system to another.

Anyway, I using the st device drivers and the mt command to backup files. I'm able to do full backups using the automatic rewind device (/dev/stape/tape-rewind) but I'm having a hell of a time trying to append incrementals. Utilizing the following command...

# cat /tmp/files.tmp | cpio -oc | gzip -c > /dev/stape/tape-rewind

...I'm able to backup all files listed in the .tmp file, and restore them. cpio shoots back a response to stdout, indicating the number of blocks stored ####.

The problem is, cpio only reads one block on append. What could I do, hopefully keeping the current schema of commands, that would allow me to save incremental backups?
 
Old 05-05-2003, 01:25 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Use non rewind tape device to create incremental backups.

Usually defined as:
/dev/st0 is rewind
/dev/nst0 is non-rewind.
 
Old 05-05-2003, 01:57 PM   #3
sbctec
LQ Newbie
 
Registered: May 2003
Location: Connecticut
Distribution: Red Hat
Posts: 7

Original Poster
Rep: Reputation: 0
When using /dev/nst0, I get the error explained above. CPIO reports 1 block saved. I have been playing around since my first post, and I've come up with something very peculiar. Upon checking the status, I get this from stdout...

SCSI 2 tape device:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN

This is after I have backed up files using nst0.
 
Old 05-05-2003, 06:28 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
I tested your command on my system and it writes to tape. I have a DLT 4000 tape drive. I would except it save more than one block.

You can test writing to the tape drive by using the dd command too.
 
  


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 device drivers for tape drives tornatom Linux - Hardware 2 06-27-2005 06:45 PM
SCSI Tape - No such device- debian woody kimc Linux - Hardware 3 09-20-2004 09:26 AM
SCSI Device unavailable after firmware download. Redhat or "sg" issue? jrvance Linux - Hardware 2 10-21-2003 02:41 PM
SCSI tape device detected but no response on st0 tungaw2001 Linux - Hardware 0 08-13-2003 02:15 AM
Figuring out what SCSI device my tape drive is on chrisk5527 Linux - General 1 12-24-2002 04:37 PM


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