Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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)
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.