can you provide access and demonstrate this on the real node? The only guess I have is that some application changes your files in /tmp or you have memory corruptions, so memtest86 is recommended to run anyway.
Thanks, Kirill On Oct 9, 2012, at 16:34 , Aleksandar Ivanisevic <[email protected]> wrote: > > Hi, > > please help me debug this weird issue. This has been happening > occasionally in my setup for literally years, on at least 10 different > OVZ kernels. > > in VE: > > # md5sum /tmp/application.log.backup > 89024ce67704e3cf2aa9e7b2e2584a60 /tmp/application.log.backup > > # gzip > application.log.backup.gz < /tmp/application.log.backup > # zcat application.log.backup.gz | md5sum > > zcat: application.log.backup.gz: unexpected end of file > 986389b791ee94692da36a56be29392a - > > but the next attempt 10 seconds later: > > # gzip > application.log.backup.gz < /tmp/application.log.backup > # /var/log zcat application.log.backup.gz | md5sum > 89024ce67704e3cf2aa9e7b2e2584a60 - > > the file is truncated at the random place. > > I can reliably reproduce this by running this in a loop: > > root@ /var/log while true; do gzip > application.log.backup.gz < > /tmp/application.log.backup ; zcat application.log.backup.gz | md5sum; done > 89024ce67704e3cf2aa9e7b2e2584a60 - > > zcat: application.log.backup.gz: unexpected end of file > ad830a43ccf4641afc2c0dfd42b3d5b8 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > > zcat: application.log.backup.gz: unexpected end of file > a35d71d503b3cfc249409075afd9295f - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > > > But when I run it from the HN, there is never any issue > > > # while true; do gzip > application.log.backup.gz < > /vz/private/1090/tmp/application.log.backup ; zcat application.log.backup.gz > | md5sum; done > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > 89024ce67704e3cf2aa9e7b2e2584a60 - > > > > _______________________________________________ > Users mailing list > [email protected] > https://openvz.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] https://openvz.org/mailman/listinfo/users
