Difference between revisions of "Reinstalling grub on RAID partition"

From Notes_Wiki
(Created page with "=Reinstalling grub on raid partition= Sometimes just using auto-detect may not work and system may not boot when one of the raid hard-disks is removed. In such cases we need ...")
(No difference)

Revision as of 05:38, 9 November 2012

Reinstalling grub on raid partition

Sometimes just using auto-detect may not work and system may not boot when one of the raid hard-disks is removed. In such cases we need to re-install grub on raid partition. To do this boot using installation CD and go to rescue mode. Then use 'chroot /mnt/sysimage'. Then use something like 'grub-install /dev/md<n>' where md<n> is the raid 1 partition for boot. Use 'sync' to ensure cached blocks from RAM are flushed to hard-disk. Then use 'reboot' and now system should boot properly even with one of the raid devices removed.