Hi Ian,

I have no experience with Debian, RAID-1 (software) and Grub, but I use
it on numerous "low end server" Fedora installations.

Make sure you install a copy of the grub boot loader in the master boot
record of each hard drive, otherwise a failure of Disk0 will result in a
machine that does not boot from the Disk1 mirror.

This site/article shows how to install grub to the 2nd hdd:
http://lists.us.dell.com/pipermail/linux-poweredge/2003-July/008898.html

While this one shows the hdd replacement method to rebuild your arrays:
http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array

I hope this helps avoid future heart ache.

Regards,

Andre Tomlinson
Network Administrator / IT Manager
All Saints Grammar School
[email protected]
www.allsaints.nsw.edu.au

-----Original Message-----
From: Ian Su [mailto:[email protected]] 
Sent: 11 August 2010 10:41
To: slug
Subject: [SLUG] Re: GRUB2 + RAID-1 on debian?

Oops!!

I spent all of last night trying to resolve this and the moment I
send slug an email I figure it out myself!

All I had to do was:

$ dpkg-reconfigure grub-pc

Not sure what magic happened behind the scenes but now everything works!

Sorry to have disturbed you guys :)
Ian

On 2010-08-11 10:33am, Ian Su wrote:
> Hi,
> 
> I've been trying to migrate my PC to RAID-1 on debian (testing),
> and it's up and running but update-grub and grub-install fails, I
> could just edit grub.cfg by hand but that's not ideal.
> 
> I've got 
>   /dev/md0 (sda1, sdb1) --> /boot
>   /dev/md1 (sda3, sdb3) --> /
> 
> $ update-grub
> grub-probe: error: no such disk.
> 
> $ grub-install /dev/sda
> grub-probe: error: no such disk.
> 
> I tried to replace grub-probe with a wrapper to see what it was
> doing, and essentially it fails on
> 
> $ grub-probe --device /dev/md0 --target=abstraction
> grub-probe: error: no such disk.
> 
> and
> 
> $ grub-probe --device-map=/boot/grub/device.map --target=fs --device
/dev/md0
> grub-probe: error: no such disk.
> 
> I think it's konking out because /dev/md0 is a software raid-1
> device. Anyone ever encounter anything like this before and know
> the way around it?
> 
> Cheers,
> Ian

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to