Helmut Tschemernjak yazmış:
Hi,
it is hard to believe that there is a bug in fsync under the Linux
kernel 2.6.10. What kind of filesystem have you used. (NFS, FAT,
Reiser, Ext2/3).
Are any special kernel or mount options used?
Is it a sparse file?
How have you found out that it is related to fsync?
best regards
Helmut Tschemernjak
We are using ReiserFS (it's default for SuSE)
It's kernel's version is 2.6.11.4-20a
No, they are regular files and no special kernel or mount options.
The application is about 10 years old and running on 25 servers.
We have an internal database which using b+tree algorithm. (We are
thinking to move SQLite)
So, before fsync, everything was ok. And when we began to use fsync ,
database corruption began. We examined a lot of possibilities like disk
corruption, cable damages, memory damages or sofware bug. At last, in an
transaction, the main transaction file was corrupted. Then we analyzed a
lot , and all clues were showing fsync. We also could not believe, so we
disabled it but nothing else, absolutely nothing else. Everything began
to work properly and still does.
Yes, it's hard to believe, but am 99.99% sure, fsync has a bug in SuSE
9.3. Just i dont know any other application in SuSE 9.3 affects it to
work buggy or it's buggy.
Best Regards
CC Vural