Re: [SLUG] Re: GRUB2 + RAID-1 on debian?
Mr A Tomlinson an...@allsaints.nsw.edu.au writes: I have no experience with Debian, RAID-1 (software) and Grub, but I use it on numerous low end server Fedora installations. [...] 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 Those are both grub 1 documents; grub 2 is a ground-up reimplementation that substantially changes things. One of the changes, pleasantly, is that it finally understands things like software RAID internally to grub, so that sort of issue is much reduced. Daniel -- ✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[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
Re: [SLUG] Re: GRUB2 + RAID-1 on debian?
On 11/08/2010 10:41, Ian Su wrote: 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 :) No problem - most of us are already disturbed N/ -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] Re: GRUB2 + RAID-1 on debian?
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 an...@allsaints.nsw.edu.au www.allsaints.nsw.edu.au -Original Message- From: Ian Su [mailto:ia...@optusnet.com.au] 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