[CentOS] Re: Rebuilding Raid 1

Tue May 2 05:21:24 UTC 2006
Mace Eliason <meliason at shaw.ca>

Also I ran fdisk -l and this is what I got

/dev/sda1
/dev/sda2
/dev/sda3

/dev/sdb1
/dev/sdb2
/dev/sdb3

disk /dev/md0: 106meg
/dev/md0 doesn't contain a valid partion table

disk /dev/md2: 15.9gig
/dev/md2 doesn't contain a valid partion table

disk /dev/md1: 2097meg
/dev/md1 doesn't contain a valid partion table

Does that help at all?

Mace Eliason wrote:
> I think the reason for the partitions not being on the same drive is 
> because the old drive is the bootable drive and I changed the scsi ids 
> of the drives to get it to work.   I think it is using sba for the 
> boot but centos is on sbb.
> I just need to make sure that the sync happens so that the info on sbb 
> is what is synced.  The info on sba is 1 month old this I have 
> confirmed by mounting sba3 and looking at the dates of the last emails 
> received on the server  I couldn't mount sdb3 because it is the active 
> partition.
>
> So from what your saying below running mdadm as you have shown will it 
> copy the good info on sdb to sda?
>
> I have to have this server ready for 7am or we will loose this 
> contract.  I can't believe I have spend all day on this.
>
> Thanks for the help
>
> If I copy over the wrong info they will lose 1 months worth of emails.
>
> Mace
>
>
> Les Mikesell wrote:
>> On Mon, 2006-05-01 at 23:18, Mace Eliason wrote:
>>  
>>> Personalities : [raid1]
>>> md1 : active raid1 sdb2[0]
>>>           2048192 blocks [2/1] [U_]
>>> md2:  active raid1 sdb3[0]
>>>           15623104 blocks [2/1] [U_]
>>> md0:  active raid1 sda1[1]
>>>           104320 blocks [2/1] [_U]
>>>     
>>
>> That tells you that your raid devices were built with
>> 2 partitions and now only have one active.  It shows
>> which member is active - note that they aren't all
>> on the same drive.  Assuming you have matching
>> partitions on the other drive (do an 'fdisk -l' to
>> make sure) and are sure the correct version is
>> running now:
>>
>> mdadm --add /dev/md0 /dev/sdb1
>> mdadm --add /dev/md1 /dev/sda2
>> mdadm --add /dev/md2 /dev/sda3
>>
>> 'cat /proc/mdstat' will show the re-sync progress. Don't
>> reboot until the resync is complete and you see [UU] on
>> all devices.  When they have all completed, if you
>> reboot cleanly the md devices will come up with both
>> partitions active (but you don't have to reboot unless
>> you want to test it).
>>
>>   
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>