The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: linux-kernel@vger.kernel.org
Subject: Block devices in pagecache, fsck, and what's going on...
Date: Mon, 22 Jul 2002 22:34:44 +0200	[thread overview]
Message-ID: <BA7A23202E6@vcnet.vc.cvut.cz> (raw)

Hello,
  I've noticed very bad problem few weeks ago, but I thought that it
is just some bad accident. But today it happened again.

  Say that for some reason kernel will crash (such as missing read_unlock...)
and you have to hard reboot it.

  Now you reboot, and system runs e2fsck, which removes couple of 
/var/run/*.pid entries.

  It was not severe, so initscripts (Debian unstable) remount root read-write,
and continue booting. And now - oops - first cleanup script complains
that it could not remove these *.pid files because of -EIO, and shortly
after that filesystem is remounted read-only because of "Freeing blocks not
in datazone - block = 271450112, count=56; block = 32768, count = 2564"
and it goes downhill very quickly...

  After reboot fsck it says that entries xxx.pid in /var/run has deleted/unused
inode yyy, and if I do not reboot, there is very high chance that it
will die again.

  If I reboot after running e2fsck, everything is fine. Always.
  
  My question is very simple: is this intended behavior of non-coherent
cache between /dev/hda1 and ext2 layer (which also makes dump to crash),
or is it something missing in e2fsck (1.27), or is it Debian bug and
it is now required to reboot machine after any run of e2fsck on /
partition?
                                    Thanks,
                                        Petr Vandrovec
                                        vandrove@vc.cvut.cz

P.S.: BTW, I find it very strange that in /var/log/* I can have
written: "Can't open file /var/cache/samba/browse.dat.. Error was Read-only
file system" when /var/log/* lives on same filesystem as /var/cache...
and also all remounting-readonly messages are here, written to same
partition which was remounted-read only due to these fatal errors.
                                        

             reply	other threads:[~2002-07-22 20:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22 20:34 Petr Vandrovec [this message]
2002-07-22 20:43 ` Block devices in pagecache, fsck, and what's going on Bartlomiej Zolnierkiewicz

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=BA7A23202E6@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --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