From: Andreas Dilger <adilger@clusterfs.com>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: ext2 'remount' problem
Date: Fri, 12 Jul 2002 10:39:28 -0600 [thread overview]
Message-ID: <20020712163928.GH8738@clusterfs.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020712085149.271A-100000@chaos.analogic.com>
On Jul 12, 2002 08:53 -0400, Richard B. Johnson wrote:
> If file-systems are mounted upon boot with 'defaults' as options
>
> like /etc/fstab...
> /dev/sdc1 /alt ext2 defaults 0 2
>
> mount -o remount,rw,noatime /alt
>
> The result is (correctly)
> /dev/sdc1 /alt ext2 rw,noatime 0 0
>
> Now, if I shut down the system, properly dismounting all the drives,
> then I reboot, the drives that were re-mounted end up being fscked
> due to 'was not cleanly unmounted' inference. Nothing wrong is found.
>
> Now, if I mount the drives "noatime" from the start, i.e., from
> /etc/fstab upon startup, there are no such errors upon re-boot.
There was once a problem that if you mounted a filesystem and crashed
shortly thereafter the filesystem would mistakenly be marked clean and
not checked when it should be, but I haven't heard the opposite problem.
I did a quick check (just mounting an ext2 filesystem on 2.4.18 from bash,
remounting, then unmounting) and everything worked as expected. Could
you try doing your test and running "dumpe2fs -h /dev/foo" between each
step to check the filesystem state. It should be "not clean" until the
filesystem is unmounted, at which point it should be "clean".
Also try doing the unmount steps manually before shutdown to see if it
is a timing issue. If you have writeback cache enabled on your disks
and this is not being flushed to the oxide before power is lost you may
not just be having an fsck problem, but also a data loss/corruption
problem.
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
next prev parent reply other threads:[~2002-07-12 16:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 12:53 ext2 'remount' problem Richard B. Johnson
2002-07-12 16:39 ` Andreas Dilger [this message]
2002-07-12 17:34 ` Richard B. Johnson
2002-07-12 18:49 ` Andreas Dilger
2002-07-12 19:21 ` Richard B. Johnson
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=20020712163928.GH8738@clusterfs.com \
--to=adilger@clusterfs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.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.