Tape restore

New to SGIs? Need help getting things going? This is the forum for you!
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
johnsmith
Posts: 126
Joined: Tue Mar 22, 2005 2:11 am
Location: Cairo
Contact:

Tape restore

Unread postby johnsmith » Wed Mar 21, 2012 1:29 am

It's been ages since I did this, but I need to get some old files off tape. Some were backed up via the Irix System Manager, others via tar. Hardware is O2 and HP DAT40.

I get errors like this:

david@scaramanga david$ /usr/freeware/bin/tar --list --file=/dev/tape
/usr/freeware/bin/tar: /dev/tape: Cannot open: No such file or directory

/usr/freeware/bin/tar --list --file=/dev/rmt/tps1d3nr
/usr/freeware/bin/tar: /dev/rmt/tps1d3nr: Cannot read: I/O error
/usr/freeware/bin/tar: At beginning of tape, quitting now
/usr/freeware/bin/tar: Error is not recoverable: exiting now

Via the GUI I get cpio "Errors during read of backup".

I can get the tape to eject from Irix, so hardware is being detected. Tried multiple tapes, all have the same trouble. SCSI seems to be terminated and plugged in. What else to try?

robespierre
Posts: 699
Joined: Mon Sep 12, 2011 2:28 pm
Location: Boston

Re: Tape restore

Unread postby robespierre » Wed Mar 21, 2012 2:34 am

what does 'mt status' or 'mt blksize' say?
have you tried using the sgi tar?
:PI: :O2: :Indigo2IMP: :Indigo2IMP:

User avatar
johnsmith
Posts: 126
Joined: Tue Mar 22, 2005 2:11 am
Location: Cairo
Contact:

Re: Tape restore

Unread postby johnsmith » Wed Mar 21, 2012 4:54 am

Both mt status and blksize say:

/dev/nrtape: No such file or directory in filesystem

kubatyszko
Posts: 352
Joined: Sat Nov 12, 2011 4:18 am
Location: Tokyo
Contact:

Re: Tape restore

Unread postby kubatyszko » Wed Mar 21, 2012 5:50 am

maybe running autoconfig && ioconfig -f /hw will help to ensure your kernel and /hw are up to date with the devices you have installed....
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

User avatar
josehill
Moderator
Moderator
Posts: 3016
Joined: Mon Jun 06, 2005 9:53 pm
Location: New England, USA
Contact:

Re: Tape restore

Unread postby josehill » Wed Mar 21, 2012 7:32 am

Also keep in mind that, depending on the version of IRIX under which the backups were made, the System Manager backup tool sometimes used programs other than tar, such as cpio or bru. More info at viewtopic.php?p=7290331#p7290331

User avatar
smj
Posts: 1407
Joined: Mon Nov 12, 2007 8:54 pm
Location: Berkeley, CA, USA, NA, Earth, Sol
Contact:

Re: Tape restore

Unread postby smj » Wed Mar 21, 2012 11:21 am

Hey now, don't forget about the Backup/Restore Manager wiki page. It includes the table of versions, links into TechPubs, and tips for reading those tapes on non-IRIX systems. If you run across something that isn't there, please feel free to edit the page and add it...
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:

User avatar
josehill
Moderator
Moderator
Posts: 3016
Joined: Mon Jun 06, 2005 9:53 pm
Location: New England, USA
Contact:

Re: Tape restore

Unread postby josehill » Wed Mar 21, 2012 11:34 am

smj wrote:Hey now, don't forget about the Backup/Restore Manager wiki page. It includes the table of versions, links into TechPubs, and tips for reading those tapes on non-IRIX systems. If you run across something that isn't there, please feel free to edit the page and add it...

Sorry about that! You are right - the wiki page is the place to go for info about the IRIX Backup and Restore Manager. Nice job on the page!

User avatar
smj
Posts: 1407
Joined: Mon Nov 12, 2007 8:54 pm
Location: Berkeley, CA, USA, NA, Earth, Sol
Contact:

Re: Tape restore

Unread postby smj » Wed Mar 21, 2012 3:32 pm

josehill wrote:Sorry about that! You are right - the wiki page is the place to go for info about the IRIX Backup and Restore Manager.

Thanks for the kind words. The wiki is (hopefully) a good resource, but certainly not the only one. Please keep sharing links to threads that you have bookmarked, etc - there's often helpful yet tangential information that wouldn't show up in any one wiki page.

And everybody bear in mind, you can create an account and create or edit a page in the wiki yourselves. If you had to spend several hours digging around for a solution, odds are somebody else will be in the same boat one day - consider adding what you learned to an existing page, or create a new one.
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:

User avatar
smj
Posts: 1407
Joined: Mon Nov 12, 2007 8:54 pm
Location: Berkeley, CA, USA, NA, Earth, Sol
Contact:

Re: Tape restore

Unread postby smj » Wed Mar 21, 2012 3:34 pm

kubatyszko wrote:maybe running autoconfig && ioconfig -f /hw will help to ensure your kernel and /hw are up to date with the devices you have installed....

That sounds like good advice. Anybody with a DAT drive on an O2 want to share which device special file(s) they use successfully?

If none of this is getting anywhere, do you have another machine you could connect the DAT drive to, to see if it works there?
Then? :IRIS3130: ... Now? :O3x02L: :A3504L:- :A3502L: :1600SW:+MLA :Fuel: :Octane2: :Octane: :Indigo2IMP: ... Other: DEC :BA213: :BA123: Sun, DG AViiON, NeXT :Cube:

robespierre
Posts: 699
Joined: Mon Sep 12, 2011 2:28 pm
Location: Boston

Re: Tape restore

Unread postby robespierre » Wed Mar 21, 2012 3:40 pm

the MAKEDEV script creates the nrtape etc links to /hw/rmt/ devices when they exist. but there are special ioctls that need to be called on the tape device when it is used, that's why I recommend native irix tar.
:PI: :O2: :Indigo2IMP: :Indigo2IMP:

User avatar
johnsmith
Posts: 126
Joined: Tue Mar 22, 2005 2:11 am
Location: Cairo
Contact:

Re: Tape restore

Unread postby johnsmith » Thu Mar 22, 2012 12:54 am

Thanks. I tried the autoconfig thing, and now when I try to read the backup the GUI says "Tape full. Please insert the next tape".

My O2 is the only computer I have with a SCSI interface. Strange.

kubatyszko
Posts: 352
Joined: Sat Nov 12, 2011 4:18 am
Location: Tokyo
Contact:

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 2:42 am

better full tape than no tape :)

can you try this:

mt rewind
dd if=/dev/tape of=/tmp/file bs=1024 count=100
file /tmp/file

if it reads anything, it may tell you the header of data on the tape - (cpio,tar,etc) and then use according tool to read the data.
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

User avatar
johnsmith
Posts: 126
Joined: Tue Mar 22, 2005 2:11 am
Location: Cairo
Contact:

Re: Tape restore

Unread postby johnsmith » Thu Mar 22, 2012 3:43 am

mt rewind
/dev/nrtape: No such file or directory in filesystem

Also

dd if=/dev/tape of=/tmp/file bs=1024 count=100
Cannot open /dev/tape: No such file or directory

Mysterious. Is there some kind of driver that should be installed?

kubatyszko
Posts: 352
Joined: Sat Nov 12, 2011 4:18 am
Location: Tokyo
Contact:

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 4:02 am

try to use /dev/rmt/tps1d3nr instead of /dev/tape or /dev/nrtape

There are no tape drivers in IRIX (except APD which doesn't concern you),
but you may want to take a look here:

/var/sysgen/master.d/scsi
(on my box, it seems to only support HP DAT C5683A - which seems to be the DDS20/40.)

This file contains some definitions on how to talk to tape drives, their capabilities etc..

Can you also run:

scsicontrol -i /dev/scsi/*

and show us the output?
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

User avatar
johnsmith
Posts: 126
Joined: Tue Mar 22, 2005 2:11 am
Location: Cairo
Contact:

Re: Tape restore

Unread postby johnsmith » Thu Mar 22, 2012 4:50 am

scaramanga 3# scsicontrol -i /dev/scsi/*
/dev/scsi/sc0d1l0: Disk SEAGATE ST336704LC 0004
ANSI vers 3, ISO ver: 0, ECMA ver: 0; supports: 16bit synch linkedcmds cmdqueing
Device is ready
/dev/scsi/sc0d2l0: Disk FUJITSU MAJ3091MC 0113
ANSI vers 4, ISO ver: 0, ECMA ver: 0; supports: 16bit synch linkedcmds cmdqueing
Device is ready
/dev/scsi/sc0d4l0: CD-ROM TOSHIBA CD-ROM XM-5401TA3605
ANSI vers 2, ISO ver: 0, ECMA ver: 0; supports: reladdr synch linkedcmds
Device is not ready

/dev/scsi/sc1d3l0: Tape HP C5683A C305
ANSI vers 3, ISO ver: 2, ECMA ver: 0; supports: 16bit synch


Return to “Getting Started, Documentation, Tips & Tricks”

Who is online

Users browsing this forum: No registered users and 0 guests