From: Duncan Sands <duncan.sands@math.u-psud.fr>
To: Seaman Hu <seaman_hu@yahoo.com>, ext3-users@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: What will happen when disk(ext3) is full while i continue to operate files ?
Date: Fri, 20 Sep 2002 11:25:09 +0200 [thread overview]
Message-ID: <200209201125.09062.duncan.sands@math.u-psud.fr> (raw)
In-Reply-To: <20020920091114.46162.qmail@web40502.mail.yahoo.com>
On Friday 20 September 2002 11:11, Seaman Hu wrote:
> Sorry. I probably didn't make it clear.
> My system is ok when first msg "EXT3-fs error (device
> sd(8,2)) in ext3_new_inode: error 28" appears.
> However, it will crash after millions of the same msg.
> Is there some kind of buffer full to cause the crash?
It looks like you have run out of inodes (df -i will tell you how
many inodes you have left). When you format your disk as
ext2 or ext3, you specify the number of inodes to be allocated
on the disk. This number does not change later. The inodes
are used for storing file information. It is possible to run out of
inodes while still having plenty of space free on the disk. The
ext3 code in 2.4 up to and including 2.4.19 contains a bug: it
fails nastily if you run out of inodes (it fails gracefully if you run
out of free space). This has been fixed in the latest 2.5 kernels
and in the -ac kernels I think.
The problem is that it is quite tricky to recover from this. What
you need to do is delete files on the disk in order to have some
free inodes. Then you can apply a kernel patch to fix the bug
(Andrew Morton sent me this patch against 2.5.20:
--- linux-2.5.20/fs/ext3/ialloc.c Wed May 29 12:48:15 2002
+++ 25/fs/ext3/ialloc.c Mon Jun 3 16:05:36 2002
@@ -534,7 +534,8 @@ repeat:
fail:
unlock_super(sb);
iput(inode);
- ext3_std_error(sb, err);
+ if (err != -ENOSPC)
+ ext3_std_error(sb, err);
return ERR_PTR(err);
}
Thanks Andrew!)
Now, how to recover? When this happened to me I did something
along these lines (I don't remember too well):
(1) force an fsck on reboot
(2) reboot quickly after the fsck and before any files get created (otherwise
you are back where you started)
(3) mount the disk as ext2 via the rootfstype=ext2 boot option
(4) delete lots of files.
Probably there is a better way...
I hope this helps,
Duncan.
next prev parent reply other threads:[~2002-09-20 9:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-20 7:39 Seaman Hu
2002-09-20 9:11 ` Seaman Hu
2002-09-20 9:20 ` Stephen C. Tweedie
2002-09-20 9:27 ` Duncan Sands
2002-09-20 9:44 ` Stephen C. Tweedie
2002-09-20 9:25 ` Duncan Sands [this message]
2002-09-20 9:51 ` Stephen C. Tweedie
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=200209201125.09062.duncan.sands@math.u-psud.fr \
--to=duncan.sands@math.u-psud.fr \
--cc=ext3-users@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=seaman_hu@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®