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.
kubatyszko
Posts: 352
Joined: Sat Nov 12, 2011 3:18 am
Location: Tokyo
Contact:

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 5:46 am

Hmm, looks exactly like the very supported one in my IRIX, it must work (unless it's broken).

Can you run :

mt -f /dev/rmt/tps1d3nr status

And paste the output as well ?
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby johnsmith » Thu Mar 22, 2012 5:48 am

mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x2264
Drive type: DAT
Media : READY, write protected, not at BOT, block 2

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

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 5:52 am

ok, then:


mt -f /dev/rmt/tps1d3nr rewind

dd if=/dev/rmt/tps1d3nr of=/tmp/file bs=512 count=10

file /tmp/file

and paste the output of all above
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby johnsmith » Thu Mar 22, 2012 3:22 pm

david@scaramanga david$ mt -f /dev/rmt/tps1d3nr rewind
david@scaramanga david$
david@scaramanga david$ dd if=/dev/rmt/tps1d3nr of=/tmp/file bs=512 count=10
0+0 records in
0+0 records out
david@scaramanga david$ file /tmp/file
/tmp/file: Empty file

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

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 5:05 pm

Ok,

try again that sequence with count=1000 - let's see if this changes (make sure to mt rewind the tape every time - the nr at the end of tape device means No Rewind).

you may also want simply trying cat /dev/rmt/tps1d3nr > /tmp/file1 && file /tmp/file1 and see if this gets you anything..

Also, you can try running mt -f /dev/rmt/tps1d3nr blksize
it should return the default block size, and use that block size in the dd command.
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby kubatyszko » Thu Mar 22, 2012 5:20 pm

also, you could try:


mt -f /dev/rmt/tps1d3nr rewind
mt -f /dev/rmt/tps1d3nr status
mt -f /dev/rmt/tps1d3nr fsf 1
mt -f /dev/rmt/tps1d3nr status
mt -f /dev/rmt/tps1d3nr rewind

This will: rewind the tape, show if it's really at BOT (beginning of tape), go forward by one file (one backup hopefully, it should take some time depending on how big it is), and show again how far did you get, and then rewind again. This will confirm the tape has some actual data.
Very likely the restore tool doesn't work because your /dev/tape or /dev/nrtape don't work properly.
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby johnsmith » Sat Mar 24, 2012 2:57 am

david@scaramanga david$ mt -f /dev/rmt/tps1d3nr blksize

Recommended tape I/O size: 0 bytes (0 512-byte blocks)
Minimum block size: 1 byte(s)
Maximum block size: 16777215 bytes
Current block size: 512 byte(s)
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x2264
Drive type: DAT
Media : READY, write protected, not at BOT, block 2
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr fsf 1
mt -f /dev/rmt/tps1d3nr status
david@scaramanga david$ mt -f /dev/rmt/tps1d3nr status
Controller: SCSI
Device: HP: C5683A C305 9
Status: 0x8264
Drive type: DAT
Media : READY, write protected, at FMK, block 778800

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

Re: Tape restore

Unread postby kubatyszko » Sat Mar 24, 2012 3:41 am

Okay, so your block size is set to 512 bytes, and somehow dd set to 512 couldn't read anything meaningful earlier.
778800 blocks 512 bytes each is 39GB of data - I guess that's compressed (DDS4).

try this then:

mt -f /dev/rmt/tps1d3nr rewind (will take a while)

dd if=/dev/rmt/tps1d3nr of=/tmp/file2 bs=512 count=778800

file /tmp/file2

(you may need to try with count decreased by 1 and 2 as well, I can't remember if it counts filemarks as blocks or not).

This might be able to copy the whole tape to a file on your drive, if not, then I don't really have any more ideas.

Your drive seems to respond to commands, works with the tape, the tape DOES have the data, so it really should work with no problems...
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby johnsmith » Sat Mar 24, 2012 4:18 am

david@scaramanga david$ mt -f /dev/rmt/tps1d3nr rewind
<if=/dev/rmt/tps1d3nr of=/tmp/file2 bs=512 count=778800
0+0 records in
0+0 records out
david@scaramanga david$ file /tmp/file2
/tmp/file2: Empty file

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

Re: Tape restore

Unread postby kubatyszko » Sat Mar 24, 2012 5:35 am

OK, last try:

mt -f /dev/rmt/tps1d3nr rewind

mt -f /dev/rmt/tps1d3nr status

paste what it shows, if it says " not at BOT, block 2 " like I saw before, then try as well:

mt -f /dev/rmt/tps1d3nr bsr 1
or
mt -f /dev/rmt/tps1d3nr bsr 2

until the status starts showing "at BOT"

Then try using your restore tool again or use dd and file combination one more time.
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

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

Re: Tape restore

Unread postby kubatyszko » Tue Mar 27, 2012 5:53 pm

here's one more idea, try using gnu tar (maybe from nekoware), I just saw a "not enough space error" running irix tar while gnu tar worked fine.
[click for links to hinv] JP: :Fuel: |:O2: | :Indy: || PL: [ :Fuel: :O2: :O2+: :Indy: ]

User avatar
kjaer
Posts: 349
Joined: Wed May 07, 2008 7:47 pm
Location: Seattle, WA
Contact:

Re: Tape restore

Unread postby kjaer » Wed Mar 28, 2012 10:30 am

"not enough space" means there's no room to store the block read, given the blocksize you specified (i.e. the blocksize on tape is larger than 512b). There is no corresponding error to specifying a larger blocksize than exists on tape.

try with bs=32768 or bs=65536. It'll probably work a lot better.
:OnyxR: :IRIS3130: :IRIS2400: :Onyx: :ChallengeL: :4D220VGX: :Indigo: :Octane: :Cube: :Indigo2IMP: :Indigo2: :Indy:


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

Who is online

Users browsing this forum: Yahoo [Bot], Yandex [Bot] and 1 guest