Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I have two servers with the same 10gb gzip file on each. On one server it unzips fine. On the other there are crc errors. The file sizes are the exact same. the systems are exactly the same versions of the OS, gzip verson is the same, hardware is the same, etc.

is there a way to get a checksum of some sort or compare the two files (without doing a diff between the two due to network latency) ?

I need to see or prove that is might be a disk or memory corruption problem.

share|improve this question
3  
Please, for the good of the community, start accepting answers to your past questions. 0% accept rate on 9 questions is pretty poor. –  EEAA Feb 5 '12 at 5:18
    
I would, for some reason it doesn't let me log in with this 'anonymous' account. I will look into it. –  John Ingles Feb 5 '12 at 5:23
1  
Post a question about your account over in meta.serverfault.com - one of the mods should be able to get it sorted out. –  EEAA Feb 5 '12 at 21:24

1 Answer 1

Just run $ md5sum <filename> on each system, and verify the checksums match.

share|improve this answer
    
Collisions wise, md5 is certainly not the best choice... –  ring0 Feb 5 '12 at 7:44
3  
@ring0: It's good enough under the circumstances. –  womble Feb 5 '12 at 8:18
    
Oh, hell, in this scenario, "ls -l" and looking at file sizes is probably sufficient. It's implied that the file is the OP's own, and not something he pulled from a warez site. –  cjc Feb 5 '12 at 13:53
    
@ring0: for checking for errors in transmission crc32 is good enough. As the use has nothing to do with cryptography and is concerned only with file consistency any hash will do. As calculating MD5 is faster than SHA-1 or CRC32 (from cksum) it's a good suggestion. –  Hubert Kario Feb 5 '12 at 22:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.