- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Incomplete copy of file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 12:55 AM
03-12-2004 12:55 AM
Since two days I have problems with copy of some files.
I use "cp -fp" to copy Oracle .dbf files on save directory. I have two files that are not completely copying but i have no error on cp command ???
Thanks for your help.
JMB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:08 AM
03-12-2004 01:08 AM
Re: Incomplete copy of file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:10 AM
03-12-2004 01:10 AM
Re: Incomplete copy of file
how do you know that the copying is not complete? Are the files in question by any chance >2GB?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:12 AM
03-12-2004 01:12 AM
Re: Incomplete copy of file
JMB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:19 AM
03-12-2004 01:19 AM
Re: Incomplete copy of file
Another thing to try is - tar or cpio the files to your save dir.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:24 AM
03-12-2004 01:24 AM
Re: Incomplete copy of file
I guess that rules out the "large files" issue. I assume that the problem occurs fcontinously for the same two files. What happens if you try to copy the files by ftp in bin mode?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:26 AM
03-12-2004 01:26 AM
Re: Incomplete copy of file
JMB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:39 AM
03-12-2004 01:39 AM
Re: Incomplete copy of file
I copy files when databases is stopped. I use cp command because i control files after copy with dbverify. If OK I start databases again and i save copied files on DAT. How can i control files if i use tar command?
JMB .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:42 AM
03-12-2004 01:42 AM
Re: Incomplete copy of file
If they are not being used, copy them as follows.
tusc -o /tmp/log.txt -fp cp /source_file /destination_file.
You can get tusc utility here.
http://hpux.ee.ualberta.ca/
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 01:43 AM
03-12-2004 01:43 AM
Re: Incomplete copy of file
find /original/directory -depth -print | cpio -pdxm /save/directory
Then do the dbverify
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 07:59 PM
03-12-2004 07:59 PM
Re: Incomplete copy of file
just wondering about the return code from the cp command: if you execute "echo $?" right after the cp, does it then show "0"?
Another thought - can we absolutely rule out that there is not a hardware problem? Does the copy operation produce any syslog or dmesg messages?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 09:42 PM
03-12-2004 09:42 PM
Re: Incomplete copy of file
is the save directory on the same logical volume?
Does the size of the copied file vary?
Have you tried a file compare?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2004 02:04 AM
03-13-2004 02:04 AM
Re: Incomplete copy of file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2004 02:43 AM
03-13-2004 02:43 AM
SolutionWhere there system level error entries reported in the copy time window?
It could easily be that Oracle had no reason to read the broken pages and thus never reported a problem. The copied file however, missing a large chunk, would report an error.
I would recommend to try copy with dd to the null device an see whether it complains or stops too early. So check whether the reported record count matches the file size or not.
perl -e '$k= (-s "suspect.dbf")/(8*1024); print "$k\n"'
dd bs=8k of=/dev/null if=suspect.dbf
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2004 08:15 PM
03-14-2004 08:15 PM
Re: Incomplete copy of file
John, cp return no error code and no messages. And it's the reason of the difficult to find the real problem.
In fact this saturday, we have detect hardware problem on logical volume where is save directory: BRAVO Hein!
Thanks for yoyr help.
JMB