Unix Technical Forum

Need help recovering data from gtar tape

This is a discussion on Need help recovering data from gtar tape within the AIX Operating System forums, part of the Unix Operating Systems category; --> We have a tape with a backup of a huge directory using the commands chdev -a block_size=10240 -l rmt0 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 08:14 AM
Anthony.Weber@siemens.com
 
Posts: n/a
Default Need help recovering data from gtar tape

We have a tape with a backup of a huge directory using the commands

chdev -a block_size=10240 -l rmt0
gtar -cvpf /dev/rmt0 home

Someone started a second dump to this tape using the same commands
but soon realized the mistake and stopped it with a <ctrl> c. Now we
are
trying to recover the original data that is beyond point on the tape
where
the second dump was stopped.

I have tried various combinations of tctl fsf, tctl fsr, dd, etc.

mt -f /dev/rmt0 rewind
dd ibs=10240 if=/dev/rmt0.1 bs=20b | tar xvpBbf 20 -

successfully retrieves the files from the beginning of tape (second
dump)
but I have not found a combination of tctl commands that get me to the
files beyond that point, e.g.

tctl -f /dev/rmt0 fsf 1

etc.

Suggestions?

Are there better commands to be using instead?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 08:14 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Need help recovering data from gtar tape

"Anthony.Weber@siemens.com" <Anthony.Weber@siemens.com> writes:

> trying to recover the original data that is beyond point on the tape
> where the second dump was stopped.


Interesting: 2 instances of the same question in one day.
See 'tar recovery needed' thread in this newsgroup.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 08:15 AM
Mark Taylor
 
Posts: n/a
Default Re: Need help recovering data from gtar tape

tctl -f /dev/rmt0 fsf 1 ????

don't you want

tctl -f /dev/rmt0.1 fsf 1

to use the no-rewind driver ?

Rgds
Mark Taylor

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 08:15 AM
sllabres
 
Posts: n/a
Default Re: Need help recovering data from gtar tape

> Are there better commands to be using instead?

Search for 'tarfix' and 'tar_aids'. They are under linux and I have no
personal experiences
with them, but they might be worth a test.

Bye, Stefan ... . . .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com