Bug#94200: Installing grub on raid1
Damyan Ivanov
Damyan Ivanov <divanov@creditreform.bg>, 94200@bugs.debian.org
Tue, 12 Oct 2004 11:32:53 +0300
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9FA88807E96FA0C239D43683
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
Having struggled with grub-on-raid1 problem I've found this page quite
useful:
http://lists.us.dell.com/pipermail/linux-poweredge/2003-July/014331.html
To summarize:
To install grub on each drive of raid1 set
# grub
...
grub> find /boot/grub/stage1
(hd0,0)
(hd1,0)
grub> device (hd0) /dev/XXX
grub> root (hd0,Y)
grub> setup (hd0)
...
The last three commands are repeated for each disk in the raid1 set,
replacing XXX with the disk device name (hd?, st? or whatever) and Y
with the number of the partition, containing grub files (/boot/grub)
For my system - raid1 over two SATA drives, no separate /boot, root on
first partition, it looks like this:
grub> find /boot/grub/stage1
grub> device (hd0) /dev/sda
grub> root (hd0,0)
grub> setup (hd0)
-- first disk set up
grub> device (hd0) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
-- second disk set up
The trick is to use "device (hd0) /dev/XXX" to make installed grub
consider the disk from which it is booting the first disk (which is the
case when sda goes dead).
Hopefully, this will save someone some time.
dam
--
Damyan Ivanov Creditreform Bulgaria
divanov@creditreform.bg http://www.creditreform.bg/
phone: +359(2)928-2611, 929-3993 fax: +359(2)920-0994
mobile: +359-88-856-6067 ICQ: 3028500 Y!M: dam3028500
--------------enig9FA88807E96FA0C239D43683
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBa5a5Hqjlqpcl9jsRAv83AJ4ntWqQwJoEJs9nf1e/YhkkU8+bawCfd8xn
VYTdKSpTBY21LTCaoeBfav4=
=NcTR
-----END PGP SIGNATURE-----
--------------enig9FA88807E96FA0C239D43683--