Re: Basic reiserfs question

Andreas Dilger (adilger@turbolabs.com)
Fri, 7 Sep 2001 11:04:26 -0600


On Sep 07, 2001 13:38 +0200, Mack Stevenson wrote:
> Sorry, but there's something still troubling me: is getting the following
> lines written to syslog normal upon booting after a "clean" shutdown or an
> indicator of a "dirty" shutdown?
>
> >From syslog, referring to the last time I booted my machine:
>
> reiserfs: checking transaction log (device 03:02) ...
> Warning, log replay starting on readonly filesystem
> reiserfs: replayed 16 transactions in 4 seconds
> using r5 hash to sort names
> ReiserFS version 3.6.25
> VFS: Mounted root (reiserfs filesystem) readonly.

This clearly means that it is a "dirty" shutdown, because it is replaying
the journal log.

> Should I worry if I don't get such messages whenever I boot? Or should I
> worry if I get those messages after (apparently) clean shutdown procedures?

It would be troublesome if you got the messages after a clean shutdown.
This might mean that reiserfs is not syncing some journal buffers to disk
when the root filesystem is remounted read-only. Alternately, it may mean
that it is finding bogus transactions to replay in the journal (I don't
know how reiserfs determines whether the journal is clean or dirty).

It may also mean that your disk claims to have written data to disk, but
then only puts it in cache and you power off before in actually writes it.
Do you have APM/ACPI power off after shutdown?

Cheers, Andreas

-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/