SCO tape backups won't restore in Ubuntu Linux environment


 
Thread Tools Search this Thread
Operating Systems SCO SCO tape backups won't restore in Ubuntu Linux environment
# 1  
Old 08-02-2011
SCO tape backups won't restore in Ubuntu Linux environment

Hello folks. I have the following problem:

I'm trying to create a tape backup of a list of files on a 10 year old server, running SCO Openserver 5.0.5 (the tape drive is a Seagate STD224000N, connected as a SCSI drive).

I then want to restore the contents of this tape onto a new server running Ubuntu Server 11.04 (the tape drive is a Quantum (Seagate) CD72LWH-SST, connected as SCSI).

The tape I'm using is a DDS3 tape (brand new) as it is the only tape which will work in both drives.

So I'm using tar to send some stuff to the tape on the old server, using this command to do so:
Code:
tar cvf /dev/rStp0 /pecas/scripts/*

It seems happy to do this, and if I list what I just did on the tape using 'tar tvf /dev/rStp0', it shows me a list of the files.

So now I insert the tape into the new server, and I try to restore the tape's contents to the new drive with the command:
Code:
sudo tar xvf /dev/st0

Doing so results in the following errors:
Code:
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

If I try typing sudo mt -f /dev/st0 status I get the following:
Code:
drive type = 114
drive status = 620757504
sense key error = 0
residue count = 0
file number = 0
block number = 0

Also, not sure if this helps or means anything but if I type 'dmesg', some messages
seemingly related to sense errors appear towards the end of the file:
Code:
[  171.781113] st0: Block limits 1 - 16777215 bytes.
[  342.356086] st0: Sense Key : Medium Error [current] 
[  342.356091] st0: ASC=0x3b <<vendor>> ASCQ=0xbf
[  397.977708] st0: Sense Key : Medium Error [current]

I've tried cpio as well, with the same results, whereby it seems to work fine
and list fine on the old server, but encounters read errors on the new server.
I'd be tempted to blame the tape, but it is brand new, and also that DDS2's
from the old server (which work fine on the old server) have similar input/output/'sense key' errors in a completely different server.

Apologies if this is seems rambling, I'm pretty much at a loss at where to go from here!
I read something about setting the
block size to something sensible, but I must admit I'm not great with tape-related stuff
and I couldn't figure it out. If anyone has any pointers, it would be great! Smilie

Last edited by pludi; 08-02-2011 at 08:51 AM..
# 2  
Old 08-02-2011
The default block size on SCO is 128K
You can change it in scoadmin->kernel_parameters->tune_kernel, 18
You could also try downloading cdrecord from here ftp://ftp2.sco.com/pub/skunkware/osr5/vols/
and installing a dvd writer.
# 3  
Old 08-02-2011
Thanks.. what should I change to it to though?

I've determined that it is in fact 128K on the old SCO server, so presumably that's what the tape has backed up as.

On the Ubuntu side, I tried the following variations of setting the block size to 128k, followed by trying to read with tar (had to install mt-st to get the 'setblk' thing working with mt):
Code:
sudo mt -f /dev/st0 setblk 0

(variable mode I think)
Code:
sudo mt -f /dev/st0 setblk 131072

(128k * 1024 to get byte value)

..but tar -tvf still threw the same error.

I also tried the following tar statement to try read it with 128k block size:
Code:
sudo tar -t --blocking-factor=128 -f /dev/st0

but same error.

Should I set the blocksize on the SCO side to something else then? And if so what should I set it to?
# 4  
Old 08-02-2011
I take it that you have the host version of SCO (no tcp).
How many GB of data do you have to move?
Can you write a tape on the Ubuntu machine, and read it on the SCO machine?
# 5  
Old 08-03-2011
The SCO box has no network cards, basically everything runs over serial connection (I tried transferring the data with Kermit, Zmodem etc.) but I kept getting some sort of data transfer error.

It's not too huge, a 2GB database.

Hmm, thanks I will try your suggestion and let you know what happened! I think I might also try putting the tape drive from the new server into the old box, doing a backup, and transferring the tape drive back to the new box. (Problem is I'm doing this through another tech guy as the server is 1000km away! Smilie )

Thanks for your help.
# 6  
Old 08-03-2011
You could also add a hard drive to the SCO machine, and set its file system type as one of the following : HTFS (default) EAFS AFS XENIX DOS. Pick one that Ubuntu can read, then mount the drive in the Ubuntu machine.
If you use an IDE drive, make sure that the old system will boot from the SCSI drive if an IDE drive is installed.
This User Gave Thanks to jgt For This Post:
# 7  
Old 08-05-2011
Ok never mind.. managed to solve it by putting the new tape drive in the old server, had to change a few jumpers and switches but it worked. Smilie Thanks very much for all your help!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Best method to encrypt AIX LTO6 tape backups?

Hello, I need to be able to encrypt LTO tapes that our AIX writes to for backups. We have a tape library (IBM TS3100) that our AIX host uses to write to LTO6 tapes. We then take those tapes off-site and restore to another AIX system using a 3580-H6S LTO6 tape drive - this is a very simple... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

2. UNIX for Dummies Questions & Answers

Question about a tape write error doing backups

Hello all. UNIX dummy here :p Anyway I was trying to do a full backup of my work server SUN SPARC SERVER 1000 machine (yes we are actually using this dinosaur). I did the ufsdump comand and everything was fine until I got to the dumping of regular files. During the run I got the following... (7 Replies)
Discussion started by: hammerva
7 Replies

3. AIX

Tape backups: do you always verify them after doing them ?

It may seam a bit odd that I ask this question. After you have done your backups to tapes, do you verify the content of the tapes ? - never - sometimes - always The reason I am asking is that here in the office, all the backup procedures include verifying the content of the tapes (no... (5 Replies)
Discussion started by: Browser_ice
5 Replies

4. AIX

How to optimize our tape backups ?

Hi, I am currently looking at how we can optimize and speed up our backups here. I am just a beginner operator and our system admin hardly knows anything (long term interim). There is this particular TAR backup of DB backups that for a 10.5Gb amount of files, it takes 5 hours to do the backup on... (6 Replies)
Discussion started by: Browser_ice
6 Replies

5. Solaris

Remote Backups to a Tape

My tape library is broken but backups still need to go on .I have 2 boxes running Solaris 10 Got SCSI tape drive attached to the DEV box ( my PROD Box has only fibre) I want to take the prod backup from the DEV box using ufsdump. ie /usr/sbin/ufsdump 0uvf DEV:/dev/rmt/1n... (2 Replies)
Discussion started by: Msororaji
2 Replies

6. SCO

SCO UNIX tape restore

I am a mewbie to UNIX. I am using SCO Open Server 5 to run a legacy medical billing program "MDX" I have backup tapes made on HP DataStore8 which have the application and data files. Recently unable to login as individual user but can log into root. Previous commands that had restored the system... (5 Replies)
Discussion started by: canbe842
5 Replies

7. Filesystems, Disks and Memory

Tape drives used for taking backups

Hi, I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
Discussion started by: forumsrahul
1 Replies

8. UNIX for Dummies Questions & Answers

verifying tape backups

Hello all, how would i go about verifying that a tape is backing up data correctly other than restoring the backup. for example, what command would i use to check the tape for errors? Any and all help is appreciated -Coffee (0 Replies)
Discussion started by: coffeebrown
0 Replies

9. AIX

backups getting it so the tape doesn't rew.

Currently am running the backup command for AIX 5L and see that the tape is rewinding after the completion of the back. backup -0 -u -f /dev/rmt0 / >> $file 2>&1 What can I do to stop allow the backup to rew after the completion of this job? Any thoughts? Thanks again. (2 Replies)
Discussion started by: justinburbridge
2 Replies

10. UNIX for Dummies Questions & Answers

Multiple backups on one tape

For those with backup tapes (and I just bought and installed a Seagate one for my FreeBSD box) I want to know how to get the most out of each tape by placing multiple backups on each tape (potentially 20GB). Please correct me if I'm wrong: First, retension the tape: # mt retension next, turn... (3 Replies)
Discussion started by: WIntellect
3 Replies
Login or Register to Ask a Question