Skip to contentSkip to conversation

Filesystem corruption

DISCUSSION Laurent CARON 6 participants 17 messages May 27, 2007 – May 30, 2007 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

A few days ago, one of my procmail suddenly receipes stopped to work.

I didn't care much since this only was for 1 or 2 mails.

Yesterday, i took time to dig it a bit further and looked at the filesystem on my mail server

Here is the output of ls -al in the Maildir where my mails are stored

total 1341
drwx------ 6 lcaron mail 256 2007-05-24 10:35 ./
drwx------ 363 lcaron mail 12184 2007-05-25 21:52 ../

-rw-r--r--   1 lcaron mail        17 2004-05-25 09:19 courierimapacl
drwx------   2 lcaron mail        48 2004-05-25 09:20 courierimapkeywords/
-rw-r--r--   1 lcaron lcaron  169365 2007-05-24 10:35 courierimapuiddb
drwx------   2 lcaron mail   1185016 2007-05-24 10:26 cur/
-rw-------   1 lcaron mail         0 2004-05-25 09:19 maildirfolder
?---------   ? ?      ?            ?                ? new
drwx------   2 lcaron mail        48 2007-05-24 19:16 tmp/

The entry that scares me is
?--------- ? ? ? ? ? new

Seems to me it is a filesystem corruption.

Any other solution than rebuild-tree ?

Thanks

Laurent

#1 lore raw

Hello

Quoted 23 lines · Laurent CARON

Hi,

A few days ago, one of my procmail suddenly receipes stopped to work.

I didn't care much since this only was for 1 or 2 mails.

Yesterday, i took time to dig it a bit further and looked at the filesystem on my mail server

Here is the output of ls -al in the Maildir where my mails are stored

total 1341
drwx------ 6 lcaron mail 256 2007-05-24 10:35 ./
drwx------ 363 lcaron mail 12184 2007-05-25 21:52 ../

-rw-r--r--   1 lcaron mail        17 2004-05-25 09:19 courierimapacl
drwx------   2 lcaron mail        48 2004-05-25 09:20 courierimapkeywords/
-rw-r--r--   1 lcaron lcaron  169365 2007-05-24 10:35 courierimapuiddb
drwx------   2 lcaron mail   1185016 2007-05-24 10:26 cur/
-rw-------   1 lcaron mail         0 2004-05-25 09:19 maildirfolder
?---------   ? ?      ?            ?                ? new
drwx------   2 lcaron mail        48 2007-05-24 19:16 tmp/
Quoted 7 lines

The entry that scares me is
?--------- ? ? ? ? ? new

Seems to me it is a filesystem corruption.

Any other solution than rebuild-tree ?

Did you try "rm -rf new"?

Quoted 6 lines

Thanks

Laurent

#2 lore raw
Quoted 1 line · Vladimir V. Saveliev

Did you try "rm -rf new"?

$ rm -rf new
rm: cannot lstat `new': Permission denied
#3 lore raw

Hello

Quoted 7 lines · Laurent CARON
Quoted 1 line · Vladimir V. Saveliev

Did you try "rm -rf new"?

$ rm -rf new
rm: cannot lstat `new': Permission denied

Is there anything from reiserfs in system logs?

#4 lore raw
Quoted 2 lines · Vladimir V. Saveliev

Is there anything from reiserfs in system logs?

Nothing from reiserfs/kernel in

I did experience a similar bug on another computer a while ago (this bug was "fixed" by rebuilding the tree).

#6 lore raw
In reply to a message not in the archive

[resending, because lncsa.com bounced my mail]

Quoted 16 lines · Christian Kujau
Quoted 5 lines · Laurent CARON

The entry that scares me is
?--------- ? ? ? ? ? new

Seems to me it is a filesystem corruption.
Any other solution than rebuild-tree ?

Please try to check the fs with a current version of reiserfsprogs first. As the manpage advises, try --check first and use --rebuild-tree only if you know what you're doing, IOW: have a current backup.

Also, which kernel/machine is this running on? Do you know *why* this corruption may have occured? Any recent hardware issues? Is ther anything in the logs regarding fs/device errors?

C.

Signature · 3 lines
BOFH excuse #448:

vi needs to be upgraded to vii
#7 lore raw
Quoted 3 lines · Christian Kujau
Quoted 3 lines

Please try to check the fs with a current version of reiserfsprogs first. As the manpage advises, try --check first and use --rebuild-tree only if you know what you're doing, IOW: have a current
backup.

Over the past few years, i experienced a few reiser corruption on various hardware (dell, hp, asus, sata, scsi, ide...) with the same symptoms (unredable file/dir).
Always ran check which told me to run fix-fixable or rebuild-tree, which I did after ensuring of backup reliability, and the error was corrected (after eventually losing a few files i fortunately had in the backups).

Quoted 2 lines
Quoted 2 lines

Also, which kernel/machine is this running on? Do you know *why* this corruption may have occured? Any recent hardware issues? Is ther anything in the logs regarding fs/device errors?

Kernel is 2.6.19.
The machine does not seem to have any HW issue, nothing strange in the logs..... :$
This is just a plain Dell 2650 server with a bunch of SCSI HDD, software raid5 array, reiserfs on top of it.

Laurent

#8 lore raw

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

Quoted 1 line · Laurent CARON

Always ran check which told me to run fix-fixable or rebuild-tree, which I did after ensuring of backup reliability, and the error was corrected (after eventually losing a few files i fortunately had in the backups).

Well, lucky you :)

Quoted 2 lines

The machine does not seem to have any HW issue, nothing strange in the logs..... :$
This is just a plain Dell 2650 server with a bunch of SCSI HDD, software raid5 array, reiserfs on top of it.

...and no power-failures, bad memory whatsoever?
Hm, too bad, since now it's unclear what *caused* the corruptions in the first place. You'll probably (hopefully) be able to correct this corruption with --rebuild-tree but I'd have a close look on this filesystem for further curruptions.

Christian.
- -- BOFH excuse #118:

the router thinks its a printer.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGW2N/+A7rjkF8z0wRAg9yAJ9PgWYfv1KC1Z3o/cVXScqxTYDPfwCdHKDD Wy3p1M9ODJFfuqn0JaCEu8U=
=uCAH
-----END PGP SIGNATURE-----

#11 lore raw
In reply to a message not in the archive

Hello

Quoted 6 lines · Tracy R Reed
Quoted 1 line · Laurent CARON

Seems to me it is a filesystem corruption.

Did I miss it or did not a single person ask you if this happened with reiserfs 3 or 4?

Laurent mentioned rebuild-tree mode of reiserfsck. So the problem happened with reiserfs 3.

Quoted 10 lines

I would be quite surprised if this were reiser 3 and not so surprised if it were reiser 4 which is still beta afaik.

Reiser has a nasty reputation for filesystem corruption more than any other fs. I have always found reiser3 to be rock solid but you can't mention using reiserfs in mixed company without someone accusing you of throwing your data away. You would think the developers would be doing more to counter this but I have been following reiserfs for years and nobody seems to really care all that much.

#9 lore raw
In reply to Laurent CARON

Hello

Quoted 6 lines · Laurent CARON
Quoted 4 lines · Christian Kujau
Quoted 4 lines

Please try to check the fs with a current version of reiserfsprogs first. As the manpage advises, try --check first and use --rebuild-tree only if you know what you're doing, IOW: have a current backup.

Quoted 7 lines

Over the past few years, i experienced a few reiser corruption on various hardware (dell, hp, asus, sata, scsi, ide...) with the same symptoms (unredable file/dir).
Always ran check which told me to run fix-fixable or rebuild-tree, which I did after ensuring of backup reliability, and the error was corrected (after eventually losing a few files i fortunately had in the backups).

Would you run reiserfsck --check -l log and let us see the log? That may give a hint about which kind of corruptions do you have.

Quoted 15 lines
Quoted 4 lines
Quoted 4 lines

Also, which kernel/machine is this running on? Do you know *why* this corruption may have occured? Any recent hardware issues? Is ther anything in the logs regarding fs/device errors?

Kernel is 2.6.19.
The machine does not seem to have any HW issue, nothing strange in the logs..... :$
This is just a plain Dell 2650 server with a bunch of SCSI HDD, software raid5 array, reiserfs on top of it.

Laurent

#12 lore raw
In reply to Vladimir V. Saveliev
Quoted 1 line
Quoted 1 line

I have always found reiser3 to be rock solid

My experienced too, over many server years.

Quoted 3 lines
Quoted 3 lines

but you can't
mention using reiserfs in mixed company without someone accusing you of throwing your data away.

People who repeat this rarely have any direct experience of Reiser; they repeat what they've heard; like all myths and legends they are transmitted orally rather than based on scientific observation.

Quoted 4 lines
Quoted 4 lines

You would think the developers would be doing
more to counter this but I have been following reiserfs for years and nobody seems to really care all that much.

Can't do much about human nature. MySQL suffers from the same baseless poisoned folk wisdom.

--Toby

#13 lore raw
Quoted 8 lines · On Tuesday 29 May 2007 07:36:13 Toby Thain wrote:
Quoted 4 lines
Quoted 4 lines

but you can't
mention using reiserfs in mixed company without someone accusing you of
throwing your data away.

People who repeat this rarely have any direct experience of Reiser; they repeat what they've heard; like all myths and legends they are transmitted orally rather than based on scientific observation.

Well, there is one problem I vaguely remember that I don't think has been addressed, I think it was one of those lets-put-it-off-till-v4 things. It was the fact that there are a limited number of inodes (or keys, or whatever you call a unique file), and no way of knowing how many you have left until your FS will suddenly, one day refuse to create another file.

(For comparison, ext3 seems to support not only telling you how many inodes you have left, but tuning that on the fly.)

But, I haven't run into that, and the only problem I've had lately has been Reiser4 losing data, and crashing occasionally. I switched most of my data off of Reiser4 and onto XFS for that reason. I've also been using ext3 in some places, and Reiser3 in others (one place in particular where space is limited, but I will have tons of small files).

I later learned that XFS does out-of-order writes by default, making me think I should give up and invest in UPS hardware. But, switching away from Reiser4 means I no longer see random files (including stuff in, for example, /sbin, that I hadn't touched in months) go up in smoke.

Ordinarily I like to help debug things, but not at the risk of my data. Maybe I'll try again later, and see if I can reproduce it in a VM or somewhere safe...

I do still follow the list, though, in case something interesting happens. It was fun while it lasted!

#14 lore raw

Hello

Quoted 11 lines · David Masover
Quoted 8 lines · On Tuesday 29 May 2007 07:36:13 Toby Thain wrote:
Quoted 4 lines
Quoted 4 lines

but you can't
mention using reiserfs in mixed company without someone accusing you of
throwing your data away.

People who repeat this rarely have any direct experience of Reiser; they repeat what they've heard; like all myths and legends they are transmitted orally rather than based on scientific observation.

Quoted 6 lines

Well, there is one problem I vaguely remember that I don't think has been addressed, I think it was one of those lets-put-it-off-till-v4 things. It was the fact that there are a limited number of inodes (or keys, or whatever you call a unique file), and no way of knowing how many you have left until your FS will suddenly, one day refuse to create another file.

reiserfs is limited to ~2^32 file creations. It is possible to exhaust but I do not remember any reports about that.

Quoted 9 lines

(For comparison, ext3 seems to support not only telling you how many inodes you have left, but tuning that on the fly.)

But, I haven't run into that, and the only problem I've had lately has been Reiser4 losing data, and crashing occasionally. I switched most of my data off of Reiser4 and onto XFS for that reason. I've also been using ext3 in some places, and Reiser3 in others (one place in particular where space is limited, but I will have tons of small files).

Quoted 9 lines

I later learned that XFS does out-of-order writes by default, making me think I should give up and invest in UPS hardware. But, switching away from Reiser4 means I no longer see random files (including stuff in, for example, /sbin, that I hadn't touched in months) go up in smoke.

Ordinarily I like to help debug things, but not at the risk of my data. Maybe I'll try again later, and see if I can reproduce it in a VM or somewhere safe...

that would be great, thanks

Quoted 3 lines

I do still follow the list, though, in case something interesting happens. It was fun while it lasted!

#18 lore raw
In reply to Toby Thain

Hello

Quoted 4 lines · Toby Thain
Quoted 1 line
Quoted 1 line

I have always found reiser3 to be rock solid

My experienced too, over many server years.

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

but you can't
mention using reiserfs in mixed company without someone accusing you of
throwing your data away.

People who repeat this rarely have any direct experience of Reiser; they repeat what they've heard; like all myths and legends they are transmitted orally rather than based on scientific observation.

well, there were in past several bad stories when reiserfsck was unable restore filesystems because it was unable to find
reiserfs metadata.
Later we found that sometimes (for unknown (but not likely due to reiserfs problem) reason) partition table changes so that
beginning of a partition gets shifted by few sectors. So, now, when a user reports that reiserfs metadata disappered from a device completely - recovering a partition table to original state makes data available again.

Quoted 11 lines
Quoted 4 lines
Quoted 4 lines

You would think the developers would be doing
more to counter this but I have been following reiserfs for years and nobody seems to really care all that much.

Can't do much about human nature. MySQL suffers from the same baseless poisoned folk wisdom.

--Toby

#16 lore raw
In reply to David Masover
Quoted 7 lines · David Masover
Quoted 5 lines · On Tuesday 29 May 2007 07:36:13 Toby Thain wrote:
Quoted 4 lines
Quoted 4 lines

but you can't
mention using reiserfs in mixed company without someone accusing you of
throwing your data away.

Quoted 8 lines
Quoted 3 lines

People who repeat this rarely have any direct experience of Reiser; they repeat what they've heard; like all myths and legends they are transmitted orally rather than based on scientific observation.

Well, there is one problem I vaguely remember that I don't think has been addressed, I think it was one of those lets-put-it-off-till-v4 things. It was the fact that there are a limited number of inodes (or keys, or whatever you call a unique file),

But does it cause data loss? One usually sees claims that "reiserfs ate my data", or "I heard reiserfs ate somebody's data", but without supplying a root cause - bad memory? powerfail? bad disk? etc.

Quoted 7 lines

and no way of knowing how many you have left until your FS will suddenly, one day refuse to create another file.

... switching away from Reiser4
means I no longer see random files (including stuff in, for example, /sbin, that I hadn't touched in months) go up in smoke.

I only wish sanity had prevailed over kernel inclusion, then we'd see it shaken down a lot quicker, like R3 was.

Quoted 6 lines

Ordinarily I like to help debug things, but not at the risk of my data. Maybe I'll try again later, and see if I can reproduce it in a VM or somewhere safe...

I do still follow the list, though, in case something interesting happens.

Yeah, R4 is "something interesting". :) I still hope it gets finished...

--Toby

Quoted 2 lines

It
was fun while it lasted!

#17 lore raw
Quoted 3 lines · On Wednesday 30 May 2007 11:42:01 Toby Thain wrote:

But does it cause data loss? One usually sees claims that "reiserfs ate my data", or "I heard reiserfs ate somebody's data", but without supplying a root cause - bad memory? powerfail? bad disk? etc.

Power failure shouldn't kill a filesystem, and generally shouldn't eat data that was written to disk before the failure. (Although I could complain all day here about why corruption happens anyway when you do any kind of out-of-order operations... I am looking forward to that Reiser4 transaction API, so we can finally get rid of the tmpfile+rename hack.)

But in any case, there were some kernels -- 2.4.16, I think? -- in which reiserfs was unstable and did corrupt easily. I believe that was tracked down to kernel bugs outside of reiserfs.

#15 lore raw
In reply to Vladimir V. Saveliev
Quoted 5 lines · On Wednesday 30 May 2007 11:02:26 Vladimir V. Saveliev wrote:
Quoted 3 lines

Ordinarily I like to help debug things, but not at the risk of my data. Maybe I'll try again later, and see if I can reproduce it in a VM or somewhere safe...

that would be great, thanks

Keep in mind, it's unlikely, given I don't have much resembling my original setup left around. And it was fairly random, under fairly normal usage patterns -- just I'd suddenly notice my movie had stopped playing, and I'd hit ctrl+alt+f8 and find a bunch of reiser4 error messages.

Is it at all likely that this is an amd64 bug? (The only two places I've seen it are on my box and my friend's, both amd64 on some sort of RAID.) If you don't have enough testers or hardware for amd64, I can try (again) to setup a working x86_64 VM for you to test on.