RAID1 File System corrupt - Now What?

I just got openSUSE 11.2 set up on my home server. The machine has two 2TB HDDs, the first (/dev/sda1) is partitioned thusly:

10GB /
1GB swap
1.82TB /home (/dev/md1 in RAID1 array)

The second HDD has only one partition:

1.82TB /home (/dev/md2 in RAID array)

So my home partition is on a RAID1 array, but the system only boots from one disk.

This setup has been working fine - however, today I rebooted, and got dropped at the command prompt with the following message:

http://lh6.ggpht.com/_ydh_7ek-fWk/TR0IYQOrnJI/AAAAAAAAANA/QSC5fGkFUnQ/s912/IMG_0424.JPG

Sorry for the bad angle, I couldn’t fit all that much on the camera screen (and I wasn’t going to hand type all that!

Does anyone know what’s going on here? Did one of my drives fail? They are brand new! I can boot in failsafe mode still, presumably because RAID is turned off then. What can I do to fix this?

I’d appreciate some help since this is a rather critical system on my home network.

My bad - some more searching finally turned up this thread: File system is corrupted after every reboot

I had to replace the “md-uuid” junk in /etc/fstab with the plain /dev/md0. Why, why, oh WHY have we switched to disk id’s!?! It seems to do nothing but spawn forum threads like these ones!!!

Oh well, all’s well then ends well.

Actually your description is incorrect. Firstly, the first disk is called /dev/sda, not /dev/sda1. Secondly, the component partitions that form /home on the disks are not called /dev/md1 and /dev/md2, those refer to a combined RAID array. They still are called /dev/sda3 and /dev/sdb1 (maybe). Also from the screenshot, it looks like / is also RAID, on /dev/md0.

So perhaps you have / on /dev/md0 and /home on /dev/md1? Why not post the contents of /etc/fstab and /etc/mdadm.conf instead of giving a verbal description which confuses.

On 2010-12-30 23:36, zak89 wrote:
>
> I just got openSUSE 11.2 set up on my home server. The machine has two
> 2TB HDDs, the first (/dev/sda1) is partitioned thusly:
>
> 10GB /
> 1GB swap
> 1.82TB /home (/dev/md1 in RAID1 array)
>
> The second HDD has only one partition:
>
> 1.82TB /home (/dev/md2 in RAID array)

This description is wrong.

If you have md1 and md2, that’s two different raid arrays, and it is not
clear where the two sides of each array is. Plus, md0 is missing from the
description.

Guessing, I suppose you have a partition that is half of md0, probably
sda3. And probably, the other half is sdb1. Thus, one array.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)