linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How errorproof is ext2 fs?
@ 2001-09-13 21:30 Otto Wyss
  2001-09-13 21:53 ` Joel Jaeggli
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Otto Wyss @ 2001-09-13 21:30 UTC (permalink / raw)
  To: linux-kernel

While reading the thread about "HFS Plus on Linux?" at
"debian-powerpc@list.debian.org" I had the following experience:

Within an hour I had to hard reset both of my computers, first my Linux-i386 due
to a complete lockup of the system while using el3diag, second my MacOS-powermac
due to an not responding USB-keyboard/-mouse (what a nice coincident). Now while
the Mac restarted without any fuse I had to fix the ext2-fs manually for about
15 min. Luckily it seems I haven't lost anything on both system. 

This leaves me a bad taste of Linux in my mouth. Does ext2 fs really behave so
worse in case of a crash? Okay Linux does not crash that often as MacOS does, so
it does not need a good  error proof fs. Still can't ext2 be made a little more
error proof?

Okay, there are other fs for Linux which cope better with such a situation, but
are they really more errorproof or are they just better in fixing up the mess
afterwards? Could there be more attention in not creating errors instead of
fixing them afterwards?

O. Wyss

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: How errorproof is ext2 fs?
@ 2001-09-14 13:09 Jesse Pollard
  0 siblings, 0 replies; 14+ messages in thread
From: Jesse Pollard @ 2001-09-14 13:09 UTC (permalink / raw)
  To: otto.wyss, linux-kernel

Otto Wyss <otto.wyss@bluewin.ch>:
> While reading the thread about "HFS Plus on Linux?" at
> "debian-powerpc@list.debian.org" I had the following experience:
> 
> Within an hour I had to hard reset both of my computers, first my Linux-i386 due
> to a complete lockup of the system while using el3diag, second my MacOS-powermac
> due to an not responding USB-keyboard/-mouse (what a nice coincident). Now while
> the Mac restarted without any fuse I had to fix the ext2-fs manually for about
> 15 min. Luckily it seems I haven't lost anything on both system. 
> 
> This leaves me a bad taste of Linux in my mouth. Does ext2 fs really behave so
> worse in case of a crash? Okay Linux does not crash that often as MacOS does, so
> it does not need a good  error proof fs. Still can't ext2 be made a little more
> error proof?
> 
> Okay, there are other fs for Linux which cope better with such a situation, but
> are they really more errorproof or are they just better in fixing up the mess
> afterwards? Could there be more attention in not creating errors instead of
> fixing them afterwards?

I've used linux for about 8 years now. The only time I've had a catastrophic
failure was with a disk drive went south.

About the only times I've seen ext2fs require manual repair is a crash/power
failure during fsck on boot. It doesn't happen very often. Even then, it
may not be a serious falure, just the type of error that requires a choice
in fix - missing inode/partially written inode in the root file system will
usually require the choice of deleting, or putting in lost+found.

No file system is immune to that level of failure. Some are better at
hiding the damage (xfs will lose free data blocks like mad - 3 in a row lost
6GB out of 12, though no used data was (visibly) lost.

15 minutes isn't that bad - wait until you have to spend 30 minutes to
3 hours on an NTFS or FAT32 rebuild, only to find you have to reinstall.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <Pine.LNX.4.10.10109140953100.24181-100000@coffee.psychology.mcmaster.ca>]
* Re: How errorproof is ext2 fs?
@ 2001-09-15  6:39 Timothy A. Seufert
  0 siblings, 0 replies; 14+ messages in thread
From: Timothy A. Seufert @ 2001-09-15  6:39 UTC (permalink / raw)
  To: linux-kernel

Otto Wyss <otto.wyss@bluewin.ch> wrote:

>At least ext2 and probably all the journalling fs lacks a feature the HFS+
>from the Mac has (bad tongues might say "needs"), to keep open files
>without activity in a state where a crash has no effect. I don't know how
>it is done since I'm no fs expert but my experience with my Mac (resetting
>about once a month without loosing anything) shows that it's possible.

HFS+ (the file system, as opposed to implementations of it) has no 
such feature.

In fact, HFS+ is probably more vulnerable to file system damage than 
a FS like ext2, simply because it uses a B-Tree structure.  B-Trees 
have their purposes (such as searching the whole FS for a file 
quickly, a capability very important to classic MacOS), but are 
generally not as robust as a simple inode FS like ext2.

The only thing which prevents damage from being common on MacOS 9 is 
the slow and unsophisticated MacOS 9 *implementation* of HFS+.  I'm 
pretty sure it is synchronous and single-threaded.  And the MacOS 
cache doesn't keep dirty buffers for any significant amount of time 
(no more than ~0.5s I think).  These things mean that at any given 
point in time, the state of the HFS+ metadata on disk is probably 
coherent or close to it.

As others have mentioned -- if you want FS crash resistance somewhat 
more like MacOS 9, mount your ext2 filesystems sync.  Be prepared for 
a huge performance loss.  But the correct thing to do is to figure 
out why Linux is crashing and fix it -- Linux can and should stay up 
for months or years.

Also, under Darwin (aka the MacOS X BSD layer), the likelihood of 
damage to a HFS+ volume after a crash/reboot is significantly higher. 
Darwin has a high performance async HFS+ implementation with a real 
buffer cache behind it.

-- 
Tim Seufert

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-09-16 10:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-13 21:30 How errorproof is ext2 fs? Otto Wyss
2001-09-13 21:53 ` Joel Jaeggli
2001-09-13 22:05 ` Alan Cox
2001-09-14 19:16   ` Otto Wyss
2001-09-14 20:39     ` Mike Fedyk
2001-09-16  8:58   ` Rogier Wolff
2001-09-16 10:00     ` Frank Schneider
2001-09-16 10:14     ` Luigi Genoni
     [not found] ` <3BA1E670.9010300@foogod.com>
2001-09-14 20:37   ` Otto Wyss
2001-09-14 23:09     ` Alan Cox
2001-09-14 13:09 Jesse Pollard
     [not found] <Pine.LNX.4.10.10109140953100.24181-100000@coffee.psychology.mcmaster.ca>
2001-09-14 20:47 ` Otto Wyss
2001-09-14 21:38   ` Andreas Dilger
2001-09-15  6:39 Timothy A. Seufert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).