Operating System - HP-UX
1753962 Members
7319 Online
108811 Solutions
New Discussion юеВ

Re: command cp corrupted files

 
tom quach_1
Super Advisor

command cp corrupted files

Dear,

i have a strange situation, never seen before.
i have a mounting point PROD(from prodserver) mounted to the DEV box (itanium 11.31)
PROD SERVER IS A ITANIUM 11.31 also.
when programmers copy files (executable files) and put on PROD and then they connected to the PROD server and ran it, the error said the file was corrupted. but if they FTP from the DEV to the PROD server, then it was fine.
this is a line in the file /etc/fstab on the DEV server

10.10.4.40:/PROD /PROD nfs rw,suid 0 0
and it only happens to cobol exec file.
Please give me some advices.
Regards,
Tom


10 REPLIES 10
Michael Steele_2
Honored Contributor

Re: command cp corrupted files

how is it happening? No idea. However, I always run cksum before and after, make a tar ball with the find command and ftp the tarball. Always works.

cd ./dir
find ./dir -depth | xargs tar -cvf dir_backup.tar
find ./dir -depth -exec tar -cvf dir_backup.tar {} \;

Note the ./dir, backup without absolute pathname all the way up to root.
Support Fatherhood - Stop Family Law
tom quach_1
Super Advisor

Re: command cp corrupted files

Thanks Michael,

the FTP is working without tarball. they don't want to tar and untar a file.
Not sure something with the mounting point.
Regards,
Tom
Dennis Handly
Acclaimed Contributor

Re: command cp corrupted files

I've had corruption on NFS files with old automounters. Some machines would fail and others would work.
Steven Schweda
Honored Contributor

Re: command cp corrupted files

> [...] the error said the file was
> corrupted.

It might be more helpful to see the actual
command and the actual error message.

Have you looked at the files to see what's
different?
Laurent Menase
Honored Contributor

Re: command cp corrupted files

update nfs 11.31.07.01 it should avoid out of order scheduling error on nfs.
sreekanthtm
Trusted Contributor

Re: command cp corrupted files

Hi,

Hope your cobol exec file contains some spesific pattern, which make clash with NFS. I mean, while trasfering this pattern from one server to another, NFS would recognise this as a special instruction.

You can log a call with HP (If you have AMC) or Patch your Server with latest update, and update NFS also.

Rgds,
Sreekanth.
Tingli
Esteemed Contributor

Re: command cp corrupted files

I remember that in Tru64, soft mount nfs might lose some chunks when cp files. Maybe this is the same case.
Dennis Handly
Acclaimed Contributor

Re: command cp corrupted files

>Tingli: soft mount NFS might lose some chunks when cp files.

My case was with blocksizes and a chunk was repeated and another was removed.
"nfsstat -m" showed UDP and version 2.
Laurent Menase
Honored Contributor

Re: command cp corrupted files

really check that you are well using the last version of nfs. ONC 11.31.07.01 and not 11.31.05 or older.