From: Theodore Ts'o <tytso@mit.edu>
To: Amit Sahrawat <amit.sahrawat83@gmail.com>
Cc: Jan Kara <jack@suse.cz>,
darrick.wong@oracle.com, linux-fsdevel@vger.kernel.org,
linux-ext4@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Namjae Jeon <linkinjeon@gmail.com>
Subject: Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.
Date: Wed, 16 Apr 2014 01:07:29 -0400 [thread overview]
Message-ID: <20140416050729.GD21807@thunk.org> (raw)
In-Reply-To: <CADDb1s3HYDvb51Ngrwk82gkpbUWg1bRo7kaUmbGRmb0g_9JKgw@mail.gmail.com>
On Wed, Apr 16, 2014 at 10:30:10AM +0530, Amit Sahrawat wrote:
> 4) Corrupt the block group ‘1’ by writing all ‘1’, we had one file
> with all 1’s, so using ‘dd’ –
> dd if=i_file of=/dev/sdb1 bs=4096 seek=17 count=1
> After this mount the partition – create few random size files and then
> ran ‘fsstress,
Um, sigh. You didn't say that you were deliberately corrupting the
file system. That wasn't in the subject line, or anywhere else in the
original message.
So the question isn't how the file system got corrupted, but that
you'd prefer that the system recovers without hanging after this
corruption.
I wish you had *said* that. It would have saved me a lot of time,
since I was trying to figure out how the system had gotten so
corrupted (not realizing you had deliberately corrupted the file
system).
So I think if you run "tune2fs -e remount-ro /dev/sdb1" before you
started the fsstress, the file system would have remounted the
filesystem read-only at the first EXT4-fs error message. This would
avoid the hang that you saw, since the file system would hopefully
"failed fast", before th euser had the opportunity to put data into
the page cache that would be lost when the system discovered there was
no place to put the data.
Regards,
- Ted
next prev parent reply other threads:[~2014-04-16 5:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 7:54 Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen Amit Sahrawat
2014-04-15 12:47 ` Theodore Ts'o
2014-04-16 5:00 ` Amit Sahrawat
2014-04-16 5:07 ` Theodore Ts'o [this message]
2014-04-16 5:22 ` Andreas Dilger
2014-04-16 7:51 ` Amit Sahrawat
2014-04-16 17:46 ` Darrick J. Wong
2014-04-22 5:49 ` Amit Sahrawat
2014-04-22 19:25 ` Darrick J. Wong
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=20140416050729.GD21807@thunk.org \
--to=tytso@mit.edu \
--cc=amit.sahrawat83@gmail.com \
--cc=darrick.wong@oracle.com \
--cc=jack@suse.cz \
--cc=linkinjeon@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).