Restore single file/directory from mksysb tape (aix 4.2.1)?

Restore single file/directory from mksysb tape (aix 4.2.1)?

Post by Gregg Woodco » Sat, 23 Nov 2002 04:57:58



Surely this is possible, isn't it?  I have a corrupt mksysb tape where
the corruption lies in the logical volume descriptions (i.e. it won't
restore).  This corruptness, it turns out was truly present in the
filesystems.  I have reinstalled and now want to recover all files in
2 directories.  I googled and found these steps but they are
supposedly only good for AIX 4.3.2* and DO NOT WORK for ANY of my
mksysb tapes (even ones that are NOT corrupt and are KNOWN to be good
as verified by a full restore):

tctl -f /dev/rmt0.1 fsf 3
tar -xvf /dev/rmt0.1 ./home

So is there a procedure, no matter how difficult/painful, that will
work for AIX 4.2.1?

 
 
 

Restore single file/directory from mksysb tape (aix 4.2.1)?

Post by Jens-Uwe Spierin » Sat, 23 Nov 2002 05:56:11


Hi Gregg,
as far as i know the tar format is only used till AIX 3.x.x
and from 4.x.x they used backup and restore
so you may try instead of tar : >restore -xvdf /dev/rmt0.1 ./pathname

-js-



Quote:> Surely this is possible, isn't it?  I have a corrupt mksysb tape where
> the corruption lies in the logical volume descriptions (i.e. it won't
> restore).  This corruptness, it turns out was truly present in the
> filesystems.  I have reinstalled and now want to recover all files in
> 2 directories.  I googled and found these steps but they are
> supposedly only good for AIX 4.3.2* and DO NOT WORK for ANY of my
> mksysb tapes (even ones that are NOT corrupt and are KNOWN to be good
> as verified by a full restore):

> tctl -f /dev/rmt0.1 fsf 3
> tar -xvf /dev/rmt0.1 ./home

> So is there a procedure, no matter how difficult/painful, that will
> work for AIX 4.2.1?


 
 
 

Restore single file/directory from mksysb tape (aix 4.2.1)?

Post by mark tayl » Sun, 24 Nov 2002 01:44:27



> Hi Gregg,
> as far as i know the tar format is only used till AIX 3.x.x
> and from 4.x.x they used backup and restore
> so you may try instead of tar : >restore -xvdf /dev/rmt0.1 ./pathname

> -js-

restore -s4 -xqvdf /dev/rmt0.1 ./dirname/
restore -s4 -xqvdf /dev/rmt0.1 ./dirname/filename

or, if you are feeling funky and want the whole image on disk for ease of access
etc..

mt -f /dev/rmt0 rewind
mt -f /dev/rmt0.1 fsf 3
dd if=/dev/rmt0 of=/tmp/mksysb.img conv=noerror
restore -xqvdf /tmp/mksysb.img ./dirname/
restore -xqvdf /tmp/mksysb.img ./dirname/filename

Rgds
Mark

 
 
 

Restore single file/directory from mksysb tape (aix 4.2.1)?

Post by Bob Mariot » Sat, 07 Dec 2002 01:16:47




Quote:>Surely this is possible, isn't it?  I have a corrupt mksysb tape where
>the corruption lies in the logical volume descriptions (i.e. it won't
>restore).  This corruptness, it turns out was truly present in the
>filesystems.  I have reinstalled and now want to recover all files in
>2 directories.  I googled and found these steps but they are
>supposedly only good for AIX 4.3.2* and DO NOT WORK for ANY of my
>mksysb tapes (even ones that are NOT corrupt and are KNOWN to be good
>as verified by a full restore):

>tctl -f /dev/rmt0.1 fsf 3
>tar -xvf /dev/rmt0.1 ./home

>So is there a procedure, no matter how difficult/painful, that will
>work for AIX 4.2.1?

For AIX 4.2.1 you could use:

tctl -f /dev/rmt0 rewind
tctl -f /dev/rmt0.1 fsf 3
restore  -xvf /dev/rmt0.1 ./home*

We've done exactly what you are trying to do numerous times.
Sometimes you might have to play with the EXACT value(s) of the
directory name(s) but it can and will work.

Good luck.

 
 
 

1. Restore single files from mksysb (AIX 3.2.5)

Hi,

In the good old days of AIX 3.2.5, mksysb used tar to create the backup.
However, when I try to restore a single file from an mksysb-backup, all
I get is "tar: directory checksum error (0 != 47564)" (the numbers vary,
of course).

It's the same problem on two different machines, one backed up to tape,
the other to a disk.

I try to restore using 'tar xvf /dev/rmt0 <filename>". I have tried the
"-i" option to tar, but it doesn't seem to do much of a difference.

Does anyone have any ideas as to what I'm doing wrong or what might be
the problem?

Regards
Thorfinn

2. Help -- everything is stuck back at default setting

3. Q: AIX 3.2.5 howto restore mksysb-image from file, not from tape

4. Stereo sound with Hauppauge TV card and bttv driver?

5. problem restoring from an AIX 3.20 mksysb tape

6. Playing DVDs ?

7. Restore of AIX mksysb tape via Solaris (tar | ufsrestore | pax)???

8. korganizer - in development still?

9. restore a set of files of a mksysb tape

10. AIX 4.2 mksysb - how to restore some files?

11. Q) Mksysb is capable from single CPU AIX To SMP AIX Machine.

12. How to create an mksysb tape from an mksysb file

13. restore one file from mksysb file?