I have an cvs server with pretty big binray file (about 50Mb) and its rcs file is about 2G
Today I discovered that file update returns an error:
cvs [update aborted]: unexpected EOF reading /repository/cvsroot/dir/file,v
I checked the cvs server and it showed me an completely destroyed /repository/cvsroot/dir/file,v with size about 100K.
I restored the file from backup, unfortunately I caught the same issue one more time.
After second file replace now it acts fine, but I couldn't get the reason of such behaviour.
It doesn't seem an hardware fail as all other files on the same disk are fine and smartctl doesn't show any error or suspicious warnings.
Is there a way to catch the root of this issue?
ps. cvs is running on red hat 5.5, cvs version is 1.12.6.
upd. actually after a while the file had broken again. so cvs looks like not usable with such behaviour. unfortunately due to political restrictions I couldn't migrate to another VCS like git ( at least before the end of this year ).
upd2. after some experiments I discovered, that most operations are successfully passes, but cvs rtag destroys file. I even moved the file into another project and tried to rtag it and I immediately got the broken file. the full rtag command:
cvs rtag -B -a -F -r 1.447 -b "branch" project/file
Check that you are using the correct 32- or 64-bitness version.