Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: kruhm on October 05, 2005, 06:21:05 AM

Title: raid -improper shutdown
Post by: kruhm on October 05, 2005, 06:21:05 AM
I had an improper shutdown on a server with a soft raid 1. The raid came up but I suspect an corrupt filesystem. How do I fsck or e2fsck on a soft 1 raid properly?
Title: Re: raid -improper shutdown
Post by: raem on October 05, 2005, 10:06:30 AM
kruhm

Try
cat /proc/mdstat
to check the staus of the array & see if it is rebuilding.
Title: raid -improper shutdown
Post by: kruhm on October 05, 2005, 01:54:31 PM
The raid is fine.

I'm concerned about the filesystem.
Title: raid -improper shutdown
Post by: raem on October 06, 2005, 03:22:23 AM
kruhm

This contrib may be useful
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=37

or try
man fsck
Title: raid -improper shutdown
Post by: kruhm on October 07, 2005, 02:58:59 PM
I searched a little harder. According to RH, you don't need to file system check (e2fsck) a ext3 filesystem, even after an unclean shutdown.

http://www.redhat.com/support/wpapers/redhat/ext3/
Title: Re: raid -improper shutdown
Post by: CharlieBrady on October 07, 2005, 05:21:53 PM
Quote from: "kruhm"
I had an improper shutdown on a server with a soft raid 1. The raid came up but I suspect an corrupt filesystem.


What makes you suspect a corrupt filesystem?
Title: Re: raid -improper shutdown
Post by: Reinhold on October 07, 2005, 06:28:41 PM
Quote from: "kruhm"
I had an improper shutdown on a server with a soft raid 1. The raid came up but I suspect an corrupt filesystem. How do I fsck or e2fsck on a soft 1 raid properly?


An improper shutdown will just force a resync of your Raidx-array the next time you boot.
Note: Raid drivers exist on a level _below_ your filesystem ...
you will have to look for yourself  (cat /proc/mdstat) if you want to know whether everything is ok there


Your 'SME' filesystem should usually be ok after a powerout since it's ext3 and auto-journaling. (Just look at what it tells you at boot time)
If you have a serious error in your filesystem you will be informed on boot... (it will boot into single user)
A little read on ext3 (http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html) .

Regards
Reinhold