LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .tar.gz 111GB extracting fails (https://www.linuxquestions.org/questions/linux-newbie-8/tar-gz-111gb-extracting-fails-4175543187/)

rajthampi 05-21-2015 12:16 AM

.tar.gz 111GB extracting fails
 
Hi guys

We are trying to move Oracle applications database tier archive, that is 111GB (over Linux) to a USB external drive using cp. Though the file successfully gets transferred to the external drive, trying to extract the file from a 2nd machine always fails, saying the archive is corrupt.
We have checked the integrity of the archive using 7-zip, reporting no errors. However totally frustrated as our last few attempts were totally futile.

The interesting part is, if we do scp to transfer the file to 2nd machine, extraction doesn't fail.

Please let us know, how we can successfully move this archive to the 2nd machine which is at a remote location and no possibilities of setting up a FTP for such a huge size file.

Both the source and destination Linux distros are RHEL 5 Enterprise, 64Bit, ext3 file systems.


regards,

pan64 05-21-2015 12:48 AM

I guess there is a problem with the filesystem on that usb stick.

John VV 05-21-2015 01:24 AM

what format was the usb drive ?
the single file is after all over 100 Gig so the default from the manufacture fat32 is not being used

for RHEL 5.11 use ext3 on the usb drive

veerain 05-21-2015 04:59 AM

Check the size of usb drive? Is it greater than 111GB?

Run 'badblocks' command to find bad sectors in the usb drive.

fatmac 05-21-2015 05:11 AM

There have been problems with 7zip corruptions, suggest you use something like bzip2, (or even tar & gzip).

rtmistler 05-21-2015 05:54 AM

Get the md5sum of the file.

After transfer, check that. If correct, then there's nothing wrong with the file.

Check versions of 7zip between the two machines.

rajthampi 05-21-2015 07:21 AM

Quote:

Originally Posted by pan64 (Post 5365373)
I guess there is a problem with the filesystem on that usb stick.

Sorry for the delayed replies. Was lost in few meetings. I don't think the issues are related to file system. Both the external HDDs I used were formatted using ext3 (as it is the file system used with the source system)
Both the external HDDs are newly bought, checked thoroughly for errors.
Most importantly, I don't have the same issues with the application tier archive, that is just 25GBs in size.

regards,

---------- Post added 05-21-15 at 03:22 PM ----------

Quote:

Originally Posted by John VV (Post 5365380)
what format was the usb drive ?
the single file is after all over 100 Gig so the default from the manufacture fat32 is not being used

for RHEL 5.11 use ext3 on the usb drive

Hello John

The USB HDD is formatted using ext3 (As the source system)

regards,

rajthampi 05-21-2015 07:23 AM

Quote:

Originally Posted by veerain (Post 5365449)
Check the size of usb drive? Is it greater than 111GB?

Run 'badblocks' command to find bad sectors in the usb drive.

My 1st HDD is 1TB and 2nd HDD is 2TB, hence size was never the problem.

regards,

---------- Post added 05-21-15 at 03:24 PM ----------

Quote:

Originally Posted by fatmac (Post 5365454)
There have been problems with 7zip corruptions, suggest you use something like bzip2, (or even tar & gzip).

I am using tar to extract the files. I used to 7-zip to check the integrity of the archive over Windows 8.

regards,

rajthampi 05-21-2015 07:27 AM

Quote:

Originally Posted by rtmistler (Post 5365468)
Get the md5sum of the file.

After transfer, check that. If correct, then there's nothing wrong with the file.

Check versions of 7zip between the two machines.

The source archive was NOT at all corrupt as I was able to clone from the same archives in the source system. It only gets corrupt once after copied to the external HDD. The most interesting part is 7-Zip never complained about any errors, however failed to extract the files in the mid of extraction processes.

regards,

rtmistler 05-21-2015 07:31 AM

Quote:

Originally Posted by rajthampi (Post 5365502)
The source archive was NOT at all corrupt as I was able to clone from the same archives in the source system. It only gets corrupt once after copied to the external HDD. The most interesting part is 7-Zip never complained about any errors, however failed to extract the files in the mid of extraction processes.

regards,

You're "saying" it gets corrupt. My point here is to prove or disprove those statements. Run md5sum on the file copied to that external HDD. If it matches, then the file is fine. If not, then I agree that there's something wrong.

And the other point was also to check the versions of whatever extraction tool you're using.

pan64 05-21-2015 07:33 AM

I still think there is an issue either with that filesystem (I do not mean in general with ext3, but that one on the usb stick). or the underlying hardware. You can try to copy another "big" file (for example a video) and check integrity.

rajthampi 05-21-2015 08:11 AM

Quote:

Originally Posted by rtmistler (Post 5365505)
You're "saying" it gets corrupt. My point here is to prove or disprove those statements. Run md5sum on the file copied to that external HDD. If it matches, then the file is fine. If not, then I agree that there's something wrong.

And the other point was also to check the versions of whatever extraction tool you're using.

Dear rtmistler

I am copying the file once again to the external HDD now, will post you the md5sum results soon.

regards,

rajthampi 05-21-2015 08:21 AM

Quote:

Originally Posted by pan64 (Post 5365506)
I still think there is an issue either with that filesystem (I do not mean in general with ext3, but that one on the usb stick). or the underlying hardware. You can try to copy another "big" file (for example a video) and check integrity.

Hello Pan64

This is how I built the external HDD

Connected the new HDD to Red Hat live system
Delete the NTFS partition using fdisk
Created a new partition
mkfs.ext3 to format

As I mentioned with my earlier posts, the files as big as 25GB are extracting without any issues. Please let me know whether I am doing something wrong with the partitioning or formatting part.

regards,

rajthampi 05-22-2015 03:17 AM

Quote:

Originally Posted by rtmistler (Post 5365505)
You're "saying" it gets corrupt. My point here is to prove or disprove those statements. Run md5sum on the file copied to that external HDD. If it matches, then the file is fine. If not, then I agree that there's something wrong.

And the other point was also to check the versions of whatever extraction tool you're using.

Hello rtmistler

I ran the md5sum against both source and destination files, and the md5sum for both files are the same. However, while going through the tar outputs, I could see that there were multiple errors raised like the quoted below

Quote:

tar: u05/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_ind11.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_queue08.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_ind14.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/system09.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/sysaux01.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_data18.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/system02.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/system11.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/temp03.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_data12.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_queue07.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/temp01.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/log03b.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_data07.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/system01.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_ind08.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_txn_data21.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/system03.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_media03.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_media08.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/data/a_media15.dbf: Cannot open: No such file or directory
tar: u05/oraprod/PROD/db/apps_st/archives: Cannot mkdir: No such file or directory
tar: u05/oraprod/PROD/db: Cannot utime: Read-only file system
tar: u05/oraprod/PROD/db: Cannot change mode to rwxr-xr-x: Read-only file system
tar: u05/oraprod/PROD/db: Cannot change ownership to uid 500, gid 300: Read-only file system
tar: u05/oraprod/PROD: Cannot utime: Read-only file system
tar: u05/oraprod/PROD: Cannot change mode to rwxr-xr-x: Read-only file system
tar: u05/oraprod/PROD: Cannot change ownership to uid 500, gid 300: Read-only file system
tar: u05/oraprod/scripts: Cannot mkdir: Read-only file system
tar: u05/oraprod/scripts/appsbkpdaily.log: Cannot open: No such file or directory
tar: u05/oraprod/scripts/appsbkpdaily.sh: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archbkp.sh: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archbkp.err: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archbkp.log: Cannot open: No such file or directory
tar: u05/oraprod/scripts/hotdbkprodpdaily.log: Cannot open: No such file or directory
tar: u05/oraprod/scripts/dbbinariescopy.err: Cannot open: No such file or directory
tar: u05/oraprod/scripts/dbbinariescopy.log: Cannot open: No such file or directory
tar: u05/oraprod/scripts/dbbinariescopy.sh: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archdel.sh: Cannot open: No such file or directory
tar: u05/oraprod/scripts/hotdbkprodpdaily.err: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archdel.log: Cannot open: No such file or directory
tar: u05/oraprod/scripts/dbfilesoscopy.sh: Cannot open: No such file or directory
tar: u05/oraprod/scripts/appsbkpdaily.err: Cannot open: No such file or directory
tar: u05/oraprod/scripts/archdel.err: Cannot open: No such file or directory
tar: u05/oraprod/scripts/hotbkprod.sh.orig: Cannot open: No such file or directory
tar: u05/oraprod/scripts/hotbkprod.sh: Cannot open: No such file or directory
tar: u05/oraprod: Cannot utime: Read-only file system
tar: u05/oraprod: Cannot change mode to rwxr-xr-x: Read-only file system
tar: u05/oraprod: Cannot change ownership to uid 500, gid 300: Read-only file system
tar: Error exit delayed from previous errors
So it looks like, related to read/write errors? The archive at source is created by "oraprod" user belonging to a group "oinstall", at the destination I am trying to extract the archive as "root"

Other than the above, I can't see any other issues.

regards,

pan64 05-22-2015 03:29 AM

probably there are different users (user ids) configured and the user/group who created the tar does not exist on the target host therefore it has no right to create files/dirs.
Tar handles only ids, so you may have the the same username with different ids to make such conflicts.


All times are GMT -5. The time now is 07:31 PM.