All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: Andrew James Wade
	<ajwade@cpe00095b3131a0-cm0011ae8cd564.cpe.net.cable.rogers.com>
Cc: reiserfs-list@namesys.com
Subject: Re: Unexpected reset corrupted Reiser4 filesystem
Date: Tue, 24 May 2005 23:49:51 -0500	[thread overview]
Message-ID: <429403EF.4030803@slaphack.com> (raw)
In-Reply-To: <200505242338.32420.ajwade@cpe00095b3131a0-cm0011ae8cd564.cpe.net.cable.rogers.com>

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

Andrew James Wade wrote:
> Hello,
> 
> One of my Reiser4 filesystems was corrupted by a power glitch.

No filesystem can prepare for a power glitch, AFAIK.

> fsck fixed the corruption, but my understanding is that an
> unexpected reset should not have corrupted the filesystem. I

It's my understanding that an unexpected _should_ not have corrupted the
filesystem.  Generally, this means that if we have everything working
the way it's supposed to right up until someone hits the Reset switch,
there _should_ be zero corruption.

Caveats:
1.)  _should_ is not _is_.  Just because the developers can't crash it
doesn't mean it's invulnerable.
2.)  power flicker is different than the power/reset button.  It really
all depends on what your hardware actually does when power is cut, but
most hard drives do some sort of write caching, and some of them make it
impossible to turn that off.

To say more, I'd have to know about the physical mechanics involved, but
even if you could make the system absolutely invulnerable to power loss,
you're still going to lose data (not corrupt -- LOSE) in such an event,
unless you have a battery backup.  Even then, your drive is eventually
going to fail -- so use RAID.  And someone is eventually going to rm -rf
your RAID, or spill coffee on it, or hit it with a
tornado/earthquake/nuke, so have multiple sites and make backups.

That's what it all comes down to -- make backups.  The fact that you
have journalling/transactions/fsck/batteries/RAID is all just to make it
a little less catostrophic when stuff does fail.

> have an image of the corrupted filesystem, is it of any use to
> anyone?

Probably someone, not me.  I don't work here, but I'll bet money that
they are going to ask for something from debugfs.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQIVAwUBQpQD7ngHNmZLgCUhAQLvSA//bPqBcYMs/NRS7mT//zlGF0WK2YlnNUCd
2hvzXxQhKcLMIvaTo9DJ9wzkaDIHot1DZUcuFIU3f4qmb7QIlMbkVoYE1AW34Wg/
/G06KTkHUi0iU+GJ9Dq65Oj4nK1SM4AtBHMpLqhpcW0FExsj9ScmewcSehFNSzDS
Frptzvk/iWtkip2rJxReF8rKr170Y2aR+1DNaCUiLLoESTgbF5WMmcJFyyuaa0/y
JbP8/kTz4mbLuZuIt6qKswHqUACUA98sK32zeylUOeccKih35FkiaZtegIwti6Op
QwfuCQNyhlODVxAUCghMxz6RtF59Zk4hfoWv5f1GHB7/MHgHGQmMeBy3G/Y/y8D/
P29LVyjhyStVmRyfYtDewMIBQz+nx1+StTqZ3jimfwlpMZxOxeGc0IbV9qiM4o6U
uYgtf9nrdeywn2HruijYO5xiTUcIbaBUGsvCCxNYrdzMYKEDsk3iTR/Jrxl/8GJl
d88NwSAdiU+uUcPkfdlcl+bHk3SB1yX7sjbItOtrUgZxFYsjtuFOusaOo5CkT84l
2lduqioG2u4zWirRk3d3QJEWETykhX4JnjnCjw/qAQ9+JOLc5xjUbgO2fB8d1toy
QKGGVTH1P3i8Ux5ISrtP3noNtA/zzGRlhYShzc50bq8c8+/CAiqnx9FZGv854Ttp
hpTuQ1Ht0FA=
=1k9p
-----END PGP SIGNATURE-----

  reply	other threads:[~2005-05-25  4:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-25  3:38 Unexpected reset corrupted Reiser4 filesystem Andrew James Wade
2005-05-25  4:49 ` David Masover [this message]
2005-05-25 10:46   ` John Dong
2005-05-25 20:39   ` Andrew James Wade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=429403EF.4030803@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=ajwade@cpe00095b3131a0-cm0011ae8cd564.cpe.net.cable.rogers.com \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.