Skip to contentSkip to conversation

corrupted files

DISCUSSION Nicolae Mihalache 3 participants 5 messages Apr 8, 2005 – Apr 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I have experience some weird problems on a reiserfs partition. I tried to copy a big archive (6.9GB) from another computer using scp or ftp and it seems that the file gets somehow corrupted. Right now I manage to reproduce the problem even locally, I copy the file in the same directory, no error, still cmp tells they are different:

Quoted 1 line
Quoted 1 line
Quoted 1 line

cdmcs-s:/storage/cdmcsv2 # cp cdmcs-a.tgz cdmcs-a.tgz.corrupted2 cdmcs-s:/storage/cdmcsv2 # cmp cdmcs-a.tgz cdmcs-a.tgz.corrupted2 cdmcs-a.tgz cdmcs-a.tgz.corrupted2 differ: char 216256513, line 789057 cdmcs-s:/storage/cdmcsv2 # ls -l cdmcs-a.tgz cdmcs-a.tgz.corrupted2

-rw-r--r--    1 root     root     7321937920 Apr  8 18:44 cdmcs-a.tgz
-rw-r--r--    1 root     root     7321937920 Apr  8 23:46 cdmcs-a.tgz.corrupted2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

It may be a hardware problem but I somehow doubt it.
reiserfsck says No corruptions found.
The system is SuSE 9.0, kernel 2.4.21-273-smp4G (it is a dell poweredge with two pentium III cpus).

Any idea?

nicolae

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Nicolae Mihalache

Hi,

I have experience some weird problems on a reiserfs partition. I tried to copy a big archive (6.9GB) from another computer using scp or ftp and it seems that the file gets somehow corrupted. Right now I manage to reproduce the problem even locally, I copy the file in the same directory, no error, still cmp tells they are different:

when does the corruption kicks in? are small plaintext files also corrupted? or only if you copy files of a certain amount of filesize? if textfiles are also affacted, maybe "diff" could show us exactly *what* differs.

Quoted 1 line

It may be a hardware problem but I somehow doubt it.

/var/log/messages?

Quoted 2 lines

reiserfsck says No corruptions found.
The system is SuSE 9.0, kernel 2.4.21-273-smp4G (it is a dell poweredge

so, this is reiserfs3, right? did you use the current reiserfsprogs?

- --
BOFH excuse #44:

bank holiday - system operating credits not recharged -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCV9ILC/PVm5+NVoYRArPRAKCs1j03hvHYZEKe7lj/EsjdRJJzKwCfXHP7 AgI7gi5wd8ZWKKFeIV8r774=
=NPxg
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 14 lines · Christian

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Nicolae Mihalache

Hi,

I have experience some weird problems on a reiserfs partition. I tried to copy a big archive (6.9GB) from another computer using scp or ftp and it seems that the file gets somehow corrupted. Right now I manage to reproduce the problem even locally, I copy the file in the same directory, no error, still cmp tells they are different:

Quoted 5 lines

when does the corruption kicks in? are small plaintext files also corrupted? or only if you copy files of a certain amount of filesize? if textfiles are also affacted, maybe "diff" could show us exactly *what* differs.

small files seem to be ok. The smallest one for which I observed the problem was about 600MB. For the one of 6GB is always repeatable: cp folowed by cmp reports always differences in the files.

Quoted 4 lines
Quoted 1 line

It may be a hardware problem but I somehow doubt it.

/var/log/messages?

nothing relevant, the hard-disk does not seem to have bad sectors or something like that.

Quoted 7 lines
Quoted 4 lines

reiserfsck says No corruptions found.
The system is SuSE 9.0, kernel 2.4.21-273-smp4G (it is a dell poweredge

so, this is reiserfs3, right? did you use the current reiserfsprogs?

yes, reiserfs3. I use reiserfs 3.6.9 delivered with SuSE 9.0. Do you think a newer version would help? To me the problem seems to be in the kernel not in the utility programs.

Anyway is anybody interested in investigating this problem further? I can make a complete dump of the partition (it's about 80GB), such that it can be used in loop mode for test. I will also make some tests with the parition in the loop mode on another computer.

Otherwise I inted to reformat completely that partition (should I still use reiserfs3? somehow I don't trust it anymore).

mache

#3 lore raw

Hi!

Quoted 1 line

Otherwise I inted to reformat completely that partition (should I still use reiserfs3? somehow I don't trust it anymore).

I also had serveral problems with corrupted files - until I opend my laptop and cleaned/sealed the conductors of my harddrive - till now it works great!

ReiserFS is used on so many computers, even highest availability systems, I think your bug is either hardware or controller-driver based...

lg Clemens

#4 lore raw
Quoted 11 lines · Linuxhippy

Hi!

Quoted 1 line

Otherwise I inted to reformat completely that partition (should I still use reiserfs3? somehow I don't trust it anymore).

I also had serveral problems with corrupted files - until I opend my laptop and cleaned/sealed the conductors of my harddrive - till now it works great!

ReiserFS is used on so many computers, even highest availability systems, I think your bug is either hardware or controller-driver based...

lg Clemens

Ah, I just run now a "badblocks -s -v -c 100000 -n -t random /dev/hdc8" which reads/writes big chunks of data on the partition and it returns plenty of bad blocks. When run with default args (ie few KB of data at a time), "badblocks" returns no error. So it has nothing to do with reiserfs but rather with crappy hardware.

Sorry for bothering you and thanks for the good work you do with reiserfs!

mache