public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Basic reiserfs question
@ 2001-09-05 22:14 Mack Stevenson
  2001-09-05 21:50 ` Hans Reiser
  0 siblings, 1 reply; 12+ messages in thread
From: Mack Stevenson @ 2001-09-05 22:14 UTC (permalink / raw)
  To: linux-kernel

I would like to know whether log replays take place whenever the system is 
booted or only after it has been incorrectly shutdown. I occasionaly see 
"Warning, log replay (...)" during the boot-up sequence although the system 
had been correctly shut down, and I would like to know if I should worry.

Thank you

Mack Stevenson

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Basic reiserfs question
@ 2001-09-06  3:35 Samium Gromoff
  0 siblings, 0 replies; 12+ messages in thread
From: Samium Gromoff @ 2001-09-06  3:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: mackstevenson

 > I would like to know whether log replays take place whenever the system is
 > booted or only after it has been incorrectly shutdown. I occasionaly see
 > "Warning, log replay (...)" during the boot-up sequence although the system
 > had been correctly shut down, and I would like to know if I should worry.
    Actually you see "Warning" only when it is replaying log on 
  fs mounted readonly. I wander though why you see it only "occasionally"..
    Normally it replays log every time and you shouldnt bother.

cheers, 
  Sam

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Basic reiserfs question
@ 2001-09-06 13:00 Mack Stevenson
  2001-09-06 12:56 ` Hans Reiser
  0 siblings, 1 reply; 12+ messages in thread
From: Mack Stevenson @ 2001-09-06 13:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: reiser, _deepfire

>Mack Stevenson wrote:
> >
> > I would like to know whether log replays take place whenever the system 
>is
> > booted or only after it has been incorrectly shutdown. I occasionaly see
> > "Warning, log replay (...)" during the boot-up sequence although the 
>system
> > had been correctly shut down, and I would like to know if I should 
>worry.


>From: Hans Reiser <reiser@namesys.com>
>To: Mack Stevenson <mackstevenson@hotmail.com>
>CC: linux-kernel@vger.kernel.org
>Subject: Re: Basic reiserfs question
>Date: Thu, 06 Sep 2001 01:50:59 +0400
>
>
>Are you using redhat?  Do your shutdown scripts unmount the filesystem only 
>if
>it is ext2?

I am using slackware (8.0), and the shutdown script on my system uses:

# Turn off swap, then unmount local file systems.
echo "Turning off swap."
swapoff -a
echo "Unmounting local file systems."
# Don't remount UMSDOS root volumes:
if [ ! "`mount | head -1 | cut -d ' ' -f 5`" = "umsdos" ]; then
  umount -a -r -t nonfs
  echo "Remounting root filesystem read-only."
  mount -n -o remount,ro /
else
  umount -a -r -t nonfs,noumsdos,nosmbfs
fi

# This never hurts:
sync

---

I guess that's not the probem, then... Actually, whenever I shutdown I never 
see any messages about the unmounting (or the mounting in readonly mode) 
failing, which only adds to my confusion.


>From: Samium Gromoff <_deepfire@mail.ru>
>To: linux-kernel@vger.kernel.org
>CC: mackstevenson@hotmail.com
>Subject: Re: Basic reiserfs question
>Date: Thu, 6 Sep 2001 03:35:49 +0000 (UTC)
>
>Actually you see "Warning" only when it is replaying log on
>fs mounted readonly.

Yes, that's the warning I see.


>I wander though why you see it only "occasionally"..
>Normally it replays log every time and you shouldnt bother.

Does it? I know next to nothing about these issues, but I thought that I had 
read somewhere that log replays only occurred after a system crashed and 
couldn't be shutdown properly.

Thank you both,

Mack S.




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Basic reiserfs question
@ 2001-09-07 11:38 Mack Stevenson
  2001-09-07 17:04 ` Andreas Dilger
  0 siblings, 1 reply; 12+ messages in thread
From: Mack Stevenson @ 2001-09-07 11:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: reiser, nerijus

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.

Some times the second and third lines are present, some times they aren't...

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?

Or shouldn't I worry at all? ;-)

- Mack


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Basic reiserfs question
@ 2001-09-08  0:24 Mack Stevenson
  0 siblings, 0 replies; 12+ messages in thread
From: Mack Stevenson @ 2001-09-08  0:24 UTC (permalink / raw)
  To: adilger; +Cc: linux-kernel, reiser, nerijus


Andreas,

>From: Andreas Dilger <adilger@turbolabs.com>
>To: Mack Stevenson <mackstevenson@hotmail.com>
>CC: linux-kernel@vger.kernel.org, reiser@namesys.com,   
>nerijus@users.sourceforge.net
>Subject: Re: Basic reiserfs question
>Date: Fri, 7 Sep 2001 11:04:26 -0600
>
>On Sep 07, 2001  13:38 +0200, Mack Stevenson wrote:
> > >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.

Right.

> > 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.

That's what happening (kernel 2.4.8), about 1 out of 5 times .

>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?

Yes, I run APM. Should I try disabling APM power off and manually doing so 
instead?

Thank you,

Mack


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-09-08  0:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-05 22:14 Basic reiserfs question Mack Stevenson
2001-09-05 21:50 ` Hans Reiser
  -- strict thread matches above, loose matches on Subject: below --
2001-09-06  3:35 Samium Gromoff
2001-09-06 13:00 Mack Stevenson
2001-09-06 12:56 ` Hans Reiser
2001-09-06 14:09   ` Bob McElrath
2001-09-06 22:38   ` Chris Mason
2001-09-07  0:02   ` Re[2]: " Nerijus Baliunas
2001-09-07  7:50     ` Hans Reiser
2001-09-07 16:26       ` Nerijus Baliunas
2001-09-07 11:38 Mack Stevenson
2001-09-07 17:04 ` Andreas Dilger
2001-09-08  0:24 Mack Stevenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox