Re: Grub2 reinstall on raid1 system.
On Sat, Jan 15, 2011 at 8:24 AM, Jack Schneider <puck@dp-indexing.com> wrote:
> On Fri, 14 Jan 2011 12:16:37 -0500
> Tom H <tomh0665@gmail.com> wrote:
>> >> >
> [BIG SNIP]
>
>> >> You might want to try configuring grub and fstab to use UUID's
>> >> instead of /dev/mdX. That removes the possibility that the kernel
>> >> will change the mdX designations.
>> >>
>> >> Use blkid to find out the UUID's of your partitions.
>> >
>> > Thanks for the reply, Rob. What grub file do I change?
>> > grub.cfg? grub *.map? I seem to have UUIDs for both disks and
>> > LVM partitions, change both?
>>
>> So you have LVM over RAID, not just RAID.
>
> Well, not really, not all of the disks are LVM2. The first two
> disks raid1 /dev/sda & /dev/sdc are partitioned with 1 small
> /(root) partition, /dev/md0 -> 10 gigs. The balance of the disk
> is /dev/md1 under LVM2 with seven logical volumes. /home,/var,/swap
> etc The next two disks sdb and sdd are raid1 as /dev/md2 which I
> need to use as an extension of the LVM.
So you don't need to have any lvm reference in grub.cfg.
> More info, when I boot the machine, I see the "GRUB loading. WELCOME to
> GRUB!" info. Then it enters the rescue mode with a "grub rescue>"
> prompt. So the kernel is found/finding the / partition. Right?
For "grub rescue", check out
http://www.gnu.org/software/grub/manual/grub.html#GRUB-only-offers-a-rescue-shell
Reply to: