[CentOS] raid 1

Sat Apr 28 18:48:50 UTC 2007
Les Mikesell <lesmikesell at gmail.com>

CentOS List wrote:
>>>>>> It might be easier to swap the old sdb into the sda position so 
>>>>>> you'll boot from it, but you should also be able to boot the 
>>>>>> install cd with
>>>>>
>>>>> If swapped and booted, and got a kernel panic error.
>>>>
>>>> What does it complain about?
>>> <snip>
>>> mounting root filesystem cfs: can't find ext3 filesystem on dev md2
>>> mount: error 22 mounting ext
>>> mount: error 22 mounting none switching to new root switchroot: mount 
>>> failed: 22 unmount /initrd/dev failed: 2
>>> Kernel panic - not syncing: attempted to kill init!
>>
>> From the rescue mode boot, can you mount either /dev/md2 or the 
>> underlying /dev/sd?2 from either of the disks.  If not, the raid isn't 
>> your problem, it is the contents of the partition.
> 
> # mount /dev/md2 /mnt/part3
> mount: Mounting /dev/md2 on /mnt/part3 failed: Invalid argument

What about the /dev/sda2 or /dev/sdb2 that was the original disk?  If 
you can't mount the filesystem from there, I think the contents either 
weren't what you thought (the raid wasn't working before the other drive 
failed) or something you have done since has damaged it.

-- 
   Les Mikesell
    lesmikesell at gmail.com