[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Software Raid, recovery after drive broke



On Tue, Oct 18, 2011 at 12:14:58PM BST, Bartek W. aka Mastier wrote:
> Hi,
> 
> I got two drives in RAID1 matrix, each one got 2 partitions, first
> boot also in raid, containg grub and such

RAID or RAID array, not matrix.

> My question is, what if I connect the new drive and it will appear
> as /dev/sda, and the already working one will be /dev/sdb. Will it
> overwrite it ?

http://zeldor.biz/2011/09/raid1-replace-broken-hdd/
http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array
http://www.debian-administration.org/articles/238
http://wiki.yobi.be/wiki/Debian_Soft_Raid

> The second question, Should I first create partitions partions on
> this new drive ? What about GRUB ? I was struggling last time to
> install it on both drives in MBR (do you have any proper procedure,
> because GRUB2 it can boot from dmraid, but cannot install on
> /dev/md0 for instance).

dmraid and mdraid are not the same thing.

http://wiki.debian.org/DebianInstaller/SataRaid
http://www.howtoforge.com/software-raid1-grub-boot-debian-etch
http://wiki.clug.org.za/wiki/RAID-1_in_a_hurry_with_grub_and_mdadm

That's after a couple of minutes of using google.
You could've found all of the bove yourself.

And above all:

% man mdadm

Regards,
-- 
Raf


Reply to: