[CentOS] Fsck on mdraid array

Wed Jul 21 16:38:48 UTC 2010
Arun Khan <knura9 at gmail.com>

On Wed, Jul 21, 2010 at 9:42 PM, Jussi Hirvi <listmember at greenspot.fi> wrote:
> Something seems to be wrong with my file systems, and I want to fsck
> everything. But I cannot.
>
> The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot,
> /, swap). OS is up-to-date CentOS 5.
>
> So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file
> systems, and try to run
>        fsck -y /dev/md0
>        fsck -y /dev/md1
>        fsck -y /dev/md2
>
> For each try I get an error message: "Superblock could not be found..."
> "The device does not seem to contain a valid ext2 filesystem..."

ext2 is the base of the journaling ext3 FS.

I  would suggest you use TestDisk
<http://www.cgsecurity.org/wiki/TestDisk> and see if you can recover
your filesystem.
The tool is powerful.  I have been able to recover disk partitions and
the filesystems within when all other tools reported "no disk
partition" on the HDD.

Good luck.
-- Arun Khan