Skip to contentSkip to conversation

filesystem corruption ?

DISCUSSION Bernd Schubert 5 participants 12 messages Mar 20, 2003 – Mar 22, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

we just encountered serious problems on our '/' reiserfs partition. To short it up, before the full problem description comes, "reiserfsck{3.6.3,4,5pre2} --check" doesn't find any problems.

Well, in detail this means that some binaries suddenly became corrupted. For example running gdb gives:

gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
Illegal instruction

We use this filesystem a nfs-root-fs to several clients (exported as read-only), so we are lucky, since we regularly backup the whole partition. We have a backup from this Morning and another one from Monday. Based on comparing the output of md5sum we can't find any problems between the version from monday and the version of this morning, *but* there are differences for some binaries in /usr/bin, such as gdb, between the backup of this Morning and the Current files.
(Well, to say the truth there also some more difference between the monday's backup, the backup of this Morning and the Current version, but these are, of course, only difference we caused ourselves by doing updates and kernel compilations)

We currently have remounted '/' (hda5) read-only and have run several versions of reiserfsck (including the current 3.6.5pre2), so 'reiserfsck --check /dev/hda5', but it doesn't find any problems.

Do you have any ideas whats going wrong and what we can do?

Thanks in advance,
Bernd

PS: a detailed system description:
- Athlon 2000+ with 3GB ECC RAM (ECC is enabled in the bios, memtest86 also
reports enabled ECC)
- 80GB Western Digital harddisk on /dev/hda
- (cdwriter on /dev/hdc)
- kernel is 2.4.20
- '/' is on hda5; '/etc' and '/var' are on extra partitions
- '/home' is mounted from another server

During the noon/afternoon I repompiled a new kernel for another system in '/usr/src', so probably the main writing access during this day.

#1 lore raw

Hello!

Quoted 7 lines · Bernd Schubert

We use this filesystem a nfs-root-fs to several clients (exported as read-only), so we are lucky, since we regularly backup the whole partition. We have a backup from this Morning and another one from Monday. Based on comparing the output of md5sum we can't find any problems between the version from monday and the version of this morning, *but* there are differences for some binaries in /usr/bin, such as gdb, between the backup of this Morning and the Current files.

Hm, interesting.
And what are the differences? How big are they?
Anything interesting in logs?
Any events happening between morning backup and time of problem discovery?

Quoted 1 line

Do you have any ideas whats going wrong and what we can do?

We need more info.
Also check modification date of gdb, may be some process changed it?

Bye,
Oleg

#2 lore raw
Quoted 11 lines · Oleg Drokin

Hello!

Quoted 7 lines · Bernd Schubert

We use this filesystem a nfs-root-fs to several clients (exported as read-only), so we are lucky, since we regularly backup the whole partition. We have a backup from this Morning and another one from Monday. Based on comparing the output of md5sum we can't find any problems between the version from monday and the version of this morning, *but* there are differences for some binaries in /usr/bin, such as gdb, between the backup of this Morning and the Current files.

Quoted 2 lines

Hm, interesting.
And what are the differences? How big are they?

Since it are binaries files, a colleague had the idea to use hexdump and diff, so the command for the attached file was:

diff <(hexdump /worka/gdb) <(hexdump /usr/bin/gdb)|sort -k 2 >gdb.diff

So the lines beginning with '<' are from working gdb and lines beginning with '>' are from corrupted gdb. When you look into the diff-file you will see, that only some bits per line have changed.

Quoted 1 line

Anything interesting in logs?

Except perhaps 'Mar 20 16:46:58 hamilton kernel: invalidate: busy buffer', nothing else.

Quoted 1 line

Any events happening between morning backup and time of problem discovery?

Except, that I recompiled a kernel and we installed some programs using aptitude (its a debian system), nothing happend to the filesystem. There was also no reboot, no crash, etc.

Update: The corruption probably happend at 15:48, since at this time also a xchat on one of the clients crashed and this was noticed by us at first. The xchat binary was also affected by the corruption.
At the very same time another client was rebooted and something seems to have caused a very strange nfs-mounting from this machine. However, we see 189 mount tries for '/', '/etc' and '/var' within 5 seconds from this client, finally it was succesfull, thatswhy we didn't notice the strange mounting scheme. Please note again that we export '/' read-only, so the client shouldn't be able to corrupt the files.
Since it turn out, that the nfs-corruption could be nfs related, I have to give further information about our server/client solution:
We have both, knfsd and unfsd (clusternfs) running on our server, knfsd serves '/' (read-only, reiserfs) and unfsd serves '/etc' and '/var'
(read-write, ext2).
Due to current kernel limitation both have to use the same rpc-port, but
luckily not the same upd/tcp port (but both mountd's are running on different rpc-ports and different tcp/upd ports).
I hope that this is not the reason for our trouble, anyway I wouldn't know how this could cause this kind of trouble at all.

I'm now going to modify the client's initrd and prevent something like this.

Quoted 4 lines
Quoted 2 lines

Do you have any ideas whats going wrong and what we can do?

We need more info.

Just tell me what else you need! Should we run debugreiserfs ?

Quoted 1 line

Also check modification date of gdb, may be some process changed it?

Its not only gdb, also several other programs. The modification time and filesize are the same.

Thanks for your help,
Bernd

#3 lore raw

Hello!

Quoted 8 lines · Bernd Schubert
Quoted 2 lines

Hm, interesting.
And what are the differences? How big are they?

Since it are binaries files, a colleague had the idea to use hexdump and diff, so the command for the attached file was:
diff <(hexdump /worka/gdb) <(hexdump /usr/bin/gdb)|sort -k 2 >gdb.diff So the lines beginning with '<' are from working gdb and lines beginning with '>' are from corrupted gdb. When you look into the diff-file you will see, that only some bits per line have changed.

I see.
Basically you have two pages of data corrupted.
And the corruption indeed looks like bit corruption.
How about rebooting that box and checking if corruption pattern changes? Also I'd recommend you to run memtext86 for some time as this looks like bad memory pattern.

Quoted 7 lines
Quoted 1 line

Any events happening between morning backup and time of problem discovery?

Except, that I recompiled a kernel and we installed some programs using aptitude (its a debian system), nothing happend to the filesystem. There was also no reboot, no crash, etc.
Update: The corruption probably happend at 15:48, since at this time also a xchat on one of the clients crashed and this was noticed by us at first. The xchat binary was also affected by the corruption.

So, the beam of X-rays run through the memory module corrupting some bits? ;) This stuff should not have been written to disk, so probably plain reboot should fix everything? Can you test that?

Bye,
Oleg

#4 lore raw
Quoted 13 lines · you

Hello!

Quoted 9 lines · Bernd Schubert
Quoted 2 lines

Hm, interesting.
And what are the differences? How big are they?

Since it are binaries files, a colleague had the idea to use hexdump and diff, so the command for the attached file was:
diff <(hexdump /worka/gdb) <(hexdump /usr/bin/gdb)|sort -k 2 >gdb.diff So the lines beginning with '<' are from working gdb and lines beginning with '>' are from corrupted gdb. When you look into the diff-file you will see, that only some bits per line have changed.

Quoted 6 lines

I see.
Basically you have two pages of data corrupted.
And the corruption indeed looks like bit corruption.
How about rebooting that box and checking if corruption pattern changes? Also I'd recommend you to run memtext86 for some time as this looks like bad memory pattern.

All of our machines have to pass a full memtest86 checking before we intend to use them - this machine is about 3 weeks old, of course it also had to run this test and furthermore it has ECC-memory.

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

Any events happening between morning backup and time of problem discovery?

Quoted 8 lines
Quoted 6 lines

Except, that I recompiled a kernel and we installed some programs using aptitude (its a debian system), nothing happend to the filesystem. There was also no reboot, no crash, etc.
Update: The corruption probably happend at 15:48, since at this time also a xchat on one of the clients crashed and this was noticed by us at first. The xchat binary was also affected by the corruption.

So, the beam of X-rays run through the memory module corrupting some bits?

There is the 'Environmental Physics Institut' in the floor below us and since we currently have an extremely high hardware failure rate, I have been joking for some time that they might be causing it (I believe they are indeed using x-ray beams). I should really ask them if their constructions are shielded properly ;-)

Quoted 2 lines

;) This stuff should not have been written to disk, so probably plain reboot should fix everything? Can you test that?

Yes of course, if something goes wrong we still have our fall back machine :-)

I will report in the afternoon if it worked.

Best regards,
Bernd

#5 lore raw
In reply to Oleg Drokin

Hi,

Quoted 4 lines

So, the beam of X-rays run through the memory module corrupting some bits? ;) This stuff should not have been written to disk, so probably plain reboot should fix everything? Can you test that?

indeed after rebooting everything is fine again. We will run another memtest86 during the weekend, though I really don't believe we will find a problem.

Though this machine will be replaced by a real server in a few month, I'm still rather worried what happend. Even if its 'only' a hardware memory problem this means lots of trouble for us -- on the one hand it seems not to be memtest86 detectable and on the other hand our programs really do need working memory, but of course this is not of your concern.

Thanks for your help,
Bernd

#6 lore raw

Hello!

Quoted 4 lines · Bernd Schubert
Quoted 3 lines

So, the beam of X-rays run through the memory module corrupting some bits? ;) This stuff should not have been written to disk, so probably plain reboot should fix everything? Can you test that?

indeed after rebooting everything is fine again. We will run another memtest86

So on-disk corruption is out of question.

Quoted 1 line

during the weekend, though I really don't believe we will find a problem.

Ask those physics guys to run some X-ray experiments while you are running memtest86 ;)

Quoted 4 lines

Though this machine will be replaced by a real server in a few month, I'm still rather worried what happend. Even if its 'only' a hardware memory problem this means lots of trouble for us -- on the one hand it seems not to be memtest86 detectable and on the other hand our programs really do need

Well, it may be not detectable because no high-enerty beams are running around at the time of test.

Quoted 1 line

working memory, but of course this is not of your concern.

I've learn in the school that if you put some bit amount of plumbum in between some area and source of radiation, chances are radiation that will reach the protected area will be of much lesser strenght.
In fact you might go to those guys and ask them what matherial (and how much of it) is best suited to shield against stuff they generate.

Bye,
Oleg

#7 lore raw
Quoted 5 lines

I've learn in the school that if you put some bit amount of plumbum in between some area and source of radiation, chances are radiation that will reach the protected area will be of much lesser strenght.
In fact you might go to those guys and ask them what matherial (and how much of it) is best suited to shield against stuff they generate.

We already discussed during the lunch time to order somthing like this for our systems ;-) (would be a rather strange order for a usual computer company, wouldn't it ?)
But in fact, I'm now really going to contact the those guys and ask if they have some stuff to detect their beams.

Have a nice weekend,
Bernd

#8 lore raw
In reply to Oleg Drokin
Quoted 1 line · Oleg Drokin

I've learn in the school that if you put some bit amount of plumbum in

It's better known in English as "lead".

The problem with lead is that it's poisonous and soft. Having to wash your hands after touching your computer could get annoying.

Other metals such as copper and steel will reduce the radiation and can also be used for protection against mechanical damage.

The best way to reduce radiation is by distance. The inverse-square law applies, so moving the computer further away from the experiment will reduce the radiation more easily than anything else you may do. One thing to consider is disk-less X-term machines for if you need to operate a computer from near the experiment, so if the X-term crashed from radiation then your server with the data should continue running correctly.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
#9 lore raw
Quoted 2 lines · Russell Coker

The problem with lead is that it's poisonous and soft. Having to wash your hands after touching your computer could get annoying.

Been there, done that. Had an experimental rig that for various reasons meant that we had a old AT-class computer that had to be within 4-6 inches of the beam in the accelerator (the actual constraint was a 18" tether one end of which was in a memory slot and other end which was actually in the beam). We had a lot of problems with backscattered stuff, so we ended up with a jacket that had a layer of lead to stop the high-energy stuff, but that had a lot of thermal neutrons coming out of it, so there was a layer of paraffin (I think, it's been close to 20 years now) to moderate those, and then the paraffin emitted the occasional alpha and beta particles, so there was a layer of metal foil to stop THOSE.

If I got some more caffeine into me, I might even be able to relate the multiple layers needed for that rig to filesystem design. ;)

#10 lore raw
In reply to Bernd Schubert

Hello,

Quoted 5 lines

Though this machine will be replaced by a real server in a few month, I'm still rather worried what happend. Even if its 'only' a hardware memory problem this means lots of trouble for us -- on the one hand it seems not to be memtest86 detectable and on the other hand our programs really do need working memory, but of course this is not of your concern.

Update: I yesterday started our fall-back-server and run another memtest86 on the suspected machine. A colleague just told me that memtest86 reported 3 errors in test 8, well lets see what comes in test 11.
So this either means that the physicians have run some experiments today or that the memory became damaged within 2 weeks.

Thanks a lot for your help to identify this as a hardware problem.

Best regards,
Bernd

#11 lore raw
Quoted 8 lines

Hello,

Quoted 5 lines

Though this machine will be replaced by a real server in a few month, I'm still rather worried what happend. Even if its 'only' a hardware memory problem this means lots of trouble for us -- on the one hand it seems not to be memtest86 detectable and on the other hand our programs really do need working memory, but of course this is not of your concern.

Quoted 5 lines

Update: I yesterday started our fall-back-server and run another memtest86 on the suspected machine. A colleague just told me that memtest86 reported 3 errors in test 8, well lets see what comes in test 11.
So this either means that the physicians have run some experiments today or that the memory became damaged within 2 weeks.

Just a reminder that a few % of all hardware is broken, no matter if it is the CPU, mainboard or ram or something else.

Quoted 4 lines

Thanks a lot for your help to identify this as a hardware problem.

Best regards,
Bernd

--------
PGP public key: https://tnonline.net/secure/pgp_key.txt