Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Migrating to Grub2 with boot on software RAID
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1128

PostPosted: Sat Dec 14, 2013 11:27 pm    Post subject: Migrating to Grub2 with boot on software RAID Reply with quote

Hi.

I have read the grub2 migration howto... but it doesn't really get into what is necessary when your boot drive is an md device.

I also read this, which was a bit more illuminating... but I still find that, ultimately, it leaves me cold.

I don't want to brick my system, so I'm nervous to just give this a shot without some advice or guidance.

My boot is on /dev/md1

My current grub.conf:
Code:
default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)
kernel /boot/kernel udev domdadm dolvm real_root=/dev/mapper/vg-slash root=/dev/ram0 rootfstype=ext3 video=uvesafb:1024x768-32,mtrr:3,ywrap
initrd /initramfs


As you can see, my real root is on an LVM device as well.

The docs say to do this:
Code:
grub2-install --grub-setup=/bin/true /dev/sda


Should I substitute /dev/md1 for /dev/sda? Or do I keep /dev/sda? (md1 is a RAID 1 of /dev/sda1 and /dev/sdb1). Where/how do I inform it of LVM and my real root?

Also, very disturbing, was the statement that I need to have my boot partition start after the 1 megabyte mark, instead of 63kb -- which of course my system is. There was no talk about the recommended way to change this from 63kb to 1mb. How can I do this without rendering my system unbootable?

Anyone have any advice on this, or know of a good doc that addresses it? I haven't really found anything yet. I cannot afford to brick my system and spend the next week getting it back up and running.

Oh yes, and do I still make an initramfs the way I used to? With genkernel?

Any help here is appreciated.

Thanks.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum