[CentOS] File system goes read-only once in a while

Thu Jul 31 12:31:51 UTC 2008
Kai Schaetzl <maillists at conactive.com>

Mufit Eribol wrote on Thu, 31 Jul 2008 13:34:00 +0300:

> I am not sure which other log file has entries about this problem

messages will have the warning from when it goes in read-only mode, that's 
the important one!

> EXT3-fs warning (device dm-0): ext3_clear_journal_err: Filesystem error 
> recorded from previous mount: IO failure
> EXT3-fs warning (device dm-0): ext3_clear_journal_err: Marking fs in 
> need of filesystem check.

As you see, it *did* find a problem ;-)

> EXT3-fs warning: mounting fs with errors, running e2fsck is recommended

and didn't correct it

> What is the best way to run fsck on a production system?

You have to unmount the filesystem in question. I think that's even 
recommended for a "do not repair" run.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com