Extracting files with tar and uncompress fails with tar: Archive - EOF not on block boundary

Extracting files with tar and uncompress fails with tar: Archive - EOF not on block boundary

Post by Tad Stephe » Fri, 15 Feb 2002 02:36:20



Hi,

Two(2) tared then compressed files were created using the following in
a directory where there are a few hundred files on a Sun Solaris 2.6
server:

tar -cvf - [a-k]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
  compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

tar -cvf - [l-z]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
  compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

I run the following commands to extract the files on a different
server (still Solaris 2.6) in a different directory than the files are
from:

uncompress -cf /tq01/clone_source/oradata/data_atok_020202.prod.Z |
tar xvf –

uncompress -cf /tq01/clone_source/oradata/data_ltoz_020202.prod.Z |
tar xvf –

The first is successfully extracted but during the 2nd extract of the
following error is returned:

Several files successfully extracted…
system01.dbf
system02.dbf
system03.dbf
system04.dbf
tar: Archive - EOF not on block boundary
tar: Error is not recoverable: exiting now
erpdev:/tq01/test/testdata$

Does anyone have any ideas on how to extract the files?  I am thinking
data_ltoz_020202.prod.Z is corrupt, hope not but have not found
another reason for the error.  Ran tar tzvf data_ltoz_020202.prod.Z
and get the same error.

TIA,
Tad Stephens

 
 
 

Extracting files with tar and uncompress fails with tar: Archive - EOF not on block boundary

Post by Dr. Yuan Li » Fri, 15 Feb 2002 04:57:52



> Hi,

> Two(2) tared then compressed files were created using the following in
> a directory where there are a few hundred files on a Sun Solaris 2.6
> server:

> tar -cvf - [a-k]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
>   compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

> tar -cvf - [l-z]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
>   compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

> I run the following commands to extract the files on a different
> server (still Solaris 2.6) in a different directory than the files are
> from:

> uncompress -cf /tq01/clone_source/oradata/data_atok_020202.prod.Z |
> tar xvf –

> uncompress -cf /tq01/clone_source/oradata/data_ltoz_020202.prod.Z |
> tar xvf –

> The first is successfully extracted but during the 2nd extract of the
> following error is returned:

> Several files successfully extracted…
> system01.dbf
> system02.dbf
> system03.dbf
> system04.dbf
> tar: Archive - EOF not on block boundary
> tar: Error is not recoverable: exiting now
> erpdev:/tq01/test/testdata$

> Does anyone have any ideas on how to extract the files?  I am thinking
> data_ltoz_020202.prod.Z is corrupt, hope not but have not found
> another reason for the error.  Ran tar tzvf data_ltoz_020202.prod.Z
> and get the same error.

Did you do the last test on the original system?  If it gives the same
error, bad luck.  File corrupt.

 
 
 

Extracting files with tar and uncompress fails with tar: Archive - EOF not on block boundary

Post by Tad Stephe » Sat, 16 Feb 2002 02:14:22




> > Hi,

> > Two(2) tared then compressed files were created using the following in
> > a directory where there are a few hundred files on a Sun Solaris 2.6
> > server:

> > tar -cvf - [a-k]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
> >   compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

> > tar -cvf - [l-z]* 2> /tq03/backup/backup_$dd/data_ltoz.log$dd | \
> >   compress -cf > /tq03/backup/backup_$dd/data_ltoz_$dd.$SID.Z

> > I run the following commands to extract the files on a different
> > server (still Solaris 2.6) in a different directory than the files are
> > from:

> > uncompress -cf /tq01/clone_source/oradata/data_atok_020202.prod.Z |
> > tar xvf –

> > uncompress -cf /tq01/clone_source/oradata/data_ltoz_020202.prod.Z |
> > tar xvf –

> > The first is successfully extracted but during the 2nd extract of the
> > following error is returned:

> > Several files successfully extracted…
> > system01.dbf
> > system02.dbf
> > system03.dbf
> > system04.dbf
> > tar: Archive - EOF not on block boundary
> > tar: Error is not recoverable: exiting now
> > erpdev:/tq01/test/testdata$

> > Does anyone have any ideas on how to extract the files?  I am thinking
> > data_ltoz_020202.prod.Z is corrupt, hope not but have not found
> > another reason for the error.  Ran tar tzvf data_ltoz_020202.prod.Z
> > and get the same error.

> Did you do the last test on the original system?  If it gives the same
> error, bad luck.  File corrupt.

Yes, get the same results on the original system.  This morning was
able to get access to the original system and run tar.  The 2nd tar
errored after it ran out of disk space.  Sorry for not waiting until I
had access to the source system to test before posting.  Thanks for
the help.