Reoccuring corruption problem
Hi!
I've been trying to cure a reoccuring file corruption problem i have on my Gentoo box running Linux 2.6.8.1-mm1 (upgraded from 2.6.7; made no difference).
I get corrupted directory entries behaving like this:
bash-2.05b# rm -rf dev-perl/
rm: cannot remove directory Dev-perl/': Directory not empty bash-2.05b# cd dev-perl/
bash-2.05b# ls
Curses-uI
bash-2.05b# ls -al
ls: Curses-uI: No such file or directory
total 0
drwxr-xr-x 3 root root 80 Aug 19 20:32 . drwxrwxrwt 8 root root 304 Aug 19 20:32 ..
Interesting to note is that "Curses-uI" is a corrupted file name, it usually happens to the same set of files in my /usr/portage. Typical corruptions i get:
"ruby-progressbar" becomes "ruby-pr?gressbar"
"ruby-zlib" becomes "ruby-zlyb"
If i reboot and use a rescue CD to run reiserfsck --rebuild-tree the corrupted directories are deleted. However, if i delete my /usr/portage and try to restore it with "emerge sync", the same set of files (usually) will corrupt in exactly the same way.
This is how i can reproduce the problem:
1. Reboot to rescue CD.
2. Run reiserfsck --rebuild-tree until it reports no errors
3. Reboot computer (no CD)
4. Remove /usr/portage
5. emerge sync (it will fetch /usr/portage)
emerge will fail and i will be left with some corrupted directories in the portage trees, usually the ruby-directories.
If i want to be really sure to get more corruption i just try to unpack a kernel source tarball. It will in the same way create some corrupted files (and usually same files every time)
From my 2.6.7 configuration:
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not setCONFIG_REISERFS_PROC_INFO=yCONFIG_REISERFS_FS_XATTR=yCONFIG_REISERFS_FS_POSIX_ACL=yCONFIG_REISERFS_FS_SECURITY=y
Running 2.6.8.1-mm1 now with SECURITY turned off and some other settings activated. I do not have the configuration file right here. A friend built me that kenrel since i cannot build a kernel, unpacking the source produces corrupted files.
I have run badblocks and memtest and they have come up with nothing.
A very strange problem, I have not read about anything similiar and I have no clue about what might be causing it.
I made a test program creating 100000 directory entries, which i ran. No problem deleting those directories. Argh.
Any ideas?
Thanks,
Dan Nilsson
Dan Nilsson wrote (ao):
Quoted 6 lines
Typical corruptions i get:
"ruby-progressbar" becomes "ruby-pr?gressbar"
"ruby-zlib" becomes "ruby-zlyb"I have run badblocks and memtest and they have come up with nothing.
Sounds like bad memory nevertheless. Can you try memtest86 for at least 24 hours?
Quoted 2 lines
Sounds like bad memory nevertheless. Can you try memtest86 for at least 24 hours?
Yes,
I put the computer running memtest86 after getting your email and it did in fact pass all tests (after ~24hrs i aborted the test).
I have fairly recently upgraded the computer by adding a memory module which i suspected would show up the errors (if any).
After running the test I fsck:ed to remove the corruptions, then proceeded by removed my /usr/portage tree (where corruptions seem to easily occur) and reinstalled all the files (with rsync). The same type of corruption occured but now to a different directory than "usual".
I have absolutely no idea what causes it. Nothing shows up in syslog and there doesn't seem to be any problems with the hard drive (which, by the way is a 2Gb drive with the corruptions occuring on a 1.6 Gb partition).
Thanks,
Dan Nilsson
T�rnqvist
Quoted 5 lines · Dan Nilsson
After running the test I fsck:ed to remove the corruptions, then proceeded by removed my
/usr/portagetree (where corruptions seem to easily occur) and reinstalled all the files (with rsync). The same type of corruption occured but now to a different directory than "usual".
I think you should provide the metadata dump of the filesystem with and without breakage to Namesys, so they can look at it when their new network is up and running. This has usually been the next logical step :)
Did you have any debugging options turned on?
Signature · 1 line
mjt
Dan Nilsson wrote (ao):
Quoted 7 lines
Quoted 2 lines
Sounds like bad memory nevertheless. Can you try memtest86 for at least 24 hours?
Yes,
I put the computer running memtest86 after getting your email and it did in fact pass all tests (after ~24hrs i aborted the test).
Quoted 8 lines
I have fairly recently upgraded the computer by adding a memory module which i suspected would show up the errors (if any).
After running the test I fsck:ed to remove the corruptions, then proceeded by removed my
/usr/portagetree (where corruptions seem to easily occur) and reinstalled all the files (with rsync). The same type of corruption occured but now to a different directory than "usual".
You seem to be able to trigger it fast and easy. Can you try again with the added memory module removed? I'm a bit stubborn .. ;-)
It must be something with your hardware, as you are the only one, and also the kind of corruption is common with broken hardware.
Quoted 5 lines · Sander
You seem to be able to trigger it fast and easy. Can you try again with the added memory module removed? I'm a bit stubborn .. ;-)
It must be something with your hardware, as you are the only one, and also the kind of corruption is common with broken hardware.
Ok. I removed the module. And put in a new one + an extra HD.
Performed the standard procedure... and no corruptions! Some further tests (unpacking kernels etc) produced no errors. Seems like - uh - the corruption problems are gone! :)
Well, what can I say, I am surprised :)
Never thought hardware problems could.. behave in this way, at least not which such consistency and precision, hehe.
Anyway, thanks a lot for your time+help.
Dan Nilsson