I think this is similar. Here is an example from the Solaris side:
# sum -r /mount/AMM001
38207 4257 /mount/AMM001
# cp /mount/AMM001 /tmp
# sum -r /tmp/AMM001
38207 4257 /tmp/AMM001
# cp /tmp/AMM001 /mount/AMMxxx
# sum -r /mount/AMM001
42616 4257 /mount/AMM001 (***!!!!!!!***)
# sum -r /tmp/AMM001
38207 4257 /tmp/AMM001
What has happened above is that the original checksum on the original file is reporting a false value (the checksum of a corruption). The file that's stored in /tmp is also corrupted in the same way (and therefore has the same checksum). When the filesystem is fooled with (by storing the already-corrupted /tmp file into AMMxxx) the corruption changes and therefore the original file appears to have changed.
I wonder if the reported 42616 is the correct checksum. If so, it would match your results. Are your files very large? This file is only about 2MB.
David
_________________________________________________________________
From: Mike Diggins <[EMAIL PROTECTED]>
Date: 2003/02/18 Tue PM 05:05:53 EST
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Sharity-talk] File corruption on Solaris
I have a similar problem that when I copy a file from my Solaris 8 box to
a Win NT 4.0 share, the first time I try, it appends some garbage
characters to the end of the file (text files in my case). However, the
second attempt copying the same file works fine as do subsequent attempts.
If I then stop copying files for an hour or so and try again, same
problem. This started for me in v2.4 and continues in v2.6. I've got
around it by copying each file twice! I only use sharity to copy a few
text files from one machine to another daily (scripted).
-Mike
On Tue, 18 Feb 2003, David Andrews wrote:
> Hello all,
>
> I was wondering if anyone knows of a problem with Sharity wherein files are
> corrupted. I have Sharity installed on a SunOS 5.8 (Solaris) box and am
> connecting to a Win2k server. When I retrieve a file from the Win2k box
> through the Solaris mount, the file is changed even though the file length
> is maintained.
>
> When I *place a file onto* the Win2k box from Solaris, it seems to work
> fine. Does this sounds familiar to anyone?
>
> # uname -a
> SunOS www.xxx.com 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-280R
>
> # df -k
> Filesystem kbytes used avail capacity Mounted on
> ...
> localhost:(cifsBrowse)browser
> 10 10 0 100% /CIFS
> localhost:(cifsFile)\\XXX\YYY
> 53327732 5778784 47548948 11% /local/www/yyy
>
>
> # cat /etc/init.d/sharity
> ...
> /usr/local/sharity/sbin/sharity.init start
> ...
> sleep 5
> /usr/local/sharity/bin/cifsmount //XXX/YYY /www/yyy -Uxxx -Pyyy
> ...
> su - nobody -c "/usr/local/sharity/bin/cifslogin //XXX/YYY -Uzzz
> -Pyyy"
> ...
>
> Thanks,
> David
>
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
_______________________________________________
Sharity-talk mailing list
[EMAIL PROTECTED]
To unsubscribe see http://at.obdev.at/mailman/listinfo/sharity-talk
