Re: Grub2 reinstall on raid1 system.
On Fri, 14 Jan 2011 06:06:17 -0600
Jack Schneider <firstname.lastname@example.org> wrote:
> On Thu, 13 Jan 2011 17:43:53 -0500
> Rob Owens <email@example.com> wrote:
> > On Thu, Jan 13, 2011 at 08:23:11AM -0600, Jack Schneider wrote:
> > >
> > > I have a raid1 based W/S running Debian Squeeze uptodate. (was
> > > until ~7 days ago) There are 4 drives, 2 of which had never been
> > > used or formatted. I configured a new array using Disk Utility
> > > from a live Ubuntu CD. That's where I screwed up... The end
> > > result was the names of the arrays were changed on the working 2
> > > drives. IE: /dev/md0 to /dev/126 and /dev/md1 became md127.
> > > Strangely the md2 array which I setup on the added drives remains
> > > as /dev/md2. My root partition is/was on /dev/md0. The result is
> > > that Grub2 fails to boot the / array. I have tried three
> > > REINSTALLING GRUB procedures from Sysresccd online docs and many
> > > others GNU.org, Ubuntu etc. The errors occur when I try to mount
> > > the partition with the /boot directory. 'Complains about file
> > > system type 'linux_raid_member' This machine has worked for 3
> > > years flawlessly.. Can anyone help with this? Or point me to a
> > > place or link to get this fixed. Google doesn't help... I can't
> > > find a article/posting where it ended successfully. I have
> > > considered a full reinstall after Squeeze goes stable, since this
> > > O/S is a crufty upgrade from sarge over time. But useless now..
> > >
> > 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.
> > -Rob
> 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?
> TIA, Jack
Whoops!! UUIDs for Not just disks, LVM volumes & RAID arrays..