public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jindrich Makovicka <makovick@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: linux-pm@lists.osdl.org
Subject: Re: Massive ext4 filesystem corruption after a failed s2disk/ram cycle
Date: Wed, 7 Oct 2009 16:25:14 +0200	[thread overview]
Message-ID: <20091007162514.6942f538@starbug.prg01.itonis.net> (raw)
In-Reply-To: 1254870145.11561.8.camel@maxim-laptop

On Wed, 07 Oct 2009 01:02:25 +0200
Maxim Levitsky <maximlevitsky@gmail.com> wrote:

> On Tue, 2009-10-06 at 17:42 -0400, Theodore Tso wrote: 
> > On Tue, Oct 06, 2009 at 11:06:55PM +0200, Maxim Levitsky wrote:
> > > 
> > > Just prior to 2.6.32 cycle I tried -next tree and noticed that
> > > after a failed s2ram (here it works only once, and I test once in
> > > a whileto see if fixed accidentally) I got a minor filesystem
> > > corruption. I am sorry I didn't report that back then.
> > 
> 
> Sure, kernel noticed errors, and remounted the filesystem R/O (I
> didn't write anything down. really sorry)
> 
> I had rebooted the system.
> Then startup scripts had booted the system to root shell
> 
> I had run fsck on the filesystem. It had plenty of files with shared
> blocks, many orphaned inodes, errors in free bitmaps.
> 
> 
> Then, after the fsck, I got many missing files (many probably went to
> lost+found), some had garbage, some became truncated (0 size)
> 
> Mostly were affected files that were from recent dpkg update.
> 
> 
> I use ubuntu 9.10, and (almost) latest -git of kernel tree.

I encountered something very similar yesterday, with 2.6.32-rc3. When
doing sync after accidentally removing a mounted USB stick, sync got
stuck, so I resorted to SysRq+S/U/B. Unfortunately this was also just
after an apt-get upgrade. The result was the same, corrupted ext4
partitions, shared blocks, orphaned inodes, free bitmap errors.

Only recently written files seem to be affected, in my case
upgraded stuff in / and configuration files in /home.

-- 
Jindrich Makovicka

  reply	other threads:[~2009-10-07 14:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-06 21:06 Massive ext4 filesystem corruption after a failed s2disk/ram cycle Maxim Levitsky
2009-10-06 21:42 ` Theodore Tso
2009-10-06 23:02   ` Maxim Levitsky
2009-10-07 14:25     ` Jindrich Makovicka [this message]
2009-10-06 21:58 ` Rafael J. Wysocki
2009-10-06 22:53   ` Henrique de Moraes Holschuh
2009-10-06 23:02     ` Rafael J. Wysocki
2009-10-07  1:29       ` Henrique de Moraes Holschuh
2009-10-07  2:14         ` Daniel Pittman
     [not found]         ` <87vdisq7bh.fsf@rimspace.net>
2009-10-07 16:16           ` Christoph Hellwig
     [not found]           ` <20091007161604.GA28849@infradead.org>
2009-11-04  2:18             ` KOSAKI Motohiro
     [not found]             ` <20091104111125.54C3.A69D9226@jp.fujitsu.com>
2009-11-05  9:56               ` Henrique de Moraes Holschuh
2009-11-08  8:29               ` Dave Chinner
     [not found]               ` <20091108082905.GA25494@discord.disaster>
2009-11-08 16:49                 ` Christoph Hellwig
     [not found]                 ` <20091108164913.GA12053@infradead.org>
2009-11-09  9:42                   ` Henrique de Moraes Holschuh
2009-10-10  3:26 ` ext4 filesystem corruption Maxim Levitsky

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=20091007162514.6942f538@starbug.prg01.itonis.net \
    --to=makovick@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox