Koozali.org: home of the SME Server

raid -improper shutdown

Offline kruhm

  • *
  • 680
  • +0/-0
raid -improper shutdown
« 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?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: raid -improper shutdown
« Reply #1 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.
...

Offline kruhm

  • *
  • 680
  • +0/-0
raid -improper shutdown
« Reply #2 on: October 05, 2005, 01:54:31 PM »
The raid is fine.

I'm concerned about the filesystem.

Offline raem

  • *
  • 3,972
  • +4/-0
raid -improper shutdown
« Reply #3 on: October 06, 2005, 03:22:23 AM »
...

Offline kruhm

  • *
  • 680
  • +0/-0
raid -improper shutdown
« Reply #4 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/

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: raid -improper shutdown
« Reply #5 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?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Re: raid -improper shutdown
« Reply #6 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 .

Regards
Reinhold
............