Unfortunately totally a nogo.
I definitely added lvm to sysintt confirmed by eselect
and addad device-mapper to boot again confirmed
For good measure I used a boot.conf like this:
boot {
generate grub
default "Funtoo Linux"
timeout 3param=/root=/dev/sda3
}
"Funtoo Linux" {
kernel bzImage[-v]
}
"Funtoo Linux64" {
kernel bzImage64[-v]
param=/root=/dev/md5
}
I get a kernel panic unknown block (2,0)
Which I believe means /dev/md5 is notb recognized
I have built installed, in /etc/conf.d/modules and loaded
modules_2_6="dm_mod md_mod raid0"
Look I've been doing Gentoos since the old days, I've done this stuff
many times before, both sucessfully and on the first try.
Always use a Manual kernel config and never used no initramfs. Old
Habits...
The problem seems to be centered around experimenting with cfdisk
partitioning utility.
I decided to try it because I read somewhere that it is a much safer
and more effective disk partitioning tool.
Doesn't seem so now.
I'm sure the old tried and true fdisk is still just fine thank you,
but I wish to try gparted which I have never done.
Doing so now, will update shortly
BTW this is about my 20th try with my new first real rig man so worth
is, having fun.
Keep smiling :)
Cheers,
MH
This should be extremely straight forward and again should have nothing to do with grub once you are passed it's installation (unless you haven't got the dolvm and doraid kernel config options).
Feeling better at any rate, just tired.
I dd zeroed everything to wipe it clean.
Used fdisk to make nice clean partitions type raid autodetect, reboot
for good measure.
re-downloaded the stage3 core2
and portage-current again
Following this baby here:
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
word-for-word, command-for-command, no improvisation.
/etc/boot.conf is this:
boot {
generate grub
default "Funtoo Linux"
timeout 3
}
"Funtoo Linux" {
kernel bzImage[-v]
params root=/dev/md3
}
So now I'm back at my original dilema.
When I enter the grub-install --no-floppy /dev/sda command I get this
output:
grub-probe: error: no mapping exists for `md1'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
Tried grub-install --no-floppy /dev/md1
Same output:
grub-probe: error: no mapping exists for `md1'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
No idea how to proceed from here.
Spent but still smiling :)
Cheers
MH
rc-update add lvm boot
rc-update add device-mapper boot
as recommended by Piotr.
It might be best to track us down in #funtoo on freenode and go through troubleshooting there. I'm concerned this thread is dragging on and not very productive with a round-trip time between responses of several hours. Chat would be better. You could even let us log in and try to figure it out.
-Daniel
Maybe doable. See you in a couple of days then.
since fdisk also complained that /dev/md1 had no available map, I did
a fdisk /dev/md1 and hit the 'w' key for write and exit. Now fdisk is
silent.
But grub-install --modules="lvm raid" --no-floppy /dev/sda returns:
grub-probe: error: no mapping exists for `md1'
grub-probe: error: no mapping exists for `md1'
grub-probe: error: no mapping exists for `md1'
You attempted a cross-disk install, but the filesystem containing /
boot/grub does not support UUIDs.
Maybe possible to fix by leaving small gaps 100-200kb between the
devices and at the end of the disk.
re-zeroing with dd now - again.
will report back.
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/' or '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=1.0
Googling it now to turn anything up.
yes,
seperate /boot -> /dev/md1 -> raid1
/ -> /dev/md3 -> raid1
lvm -> /dev/md4 -> raid0
this time around trying:
mdadm --create --metadata=1.0 ...
If this still fails to boot then I can later try:
mdadm --create --metadata=0.90 ...
I remember glimpsing somewhere in all the recent googling that grub2
will read the metadata-0.90 which is the old style I believe.
Cheers,
MH
# grub-install --no-floppy /dev/sda
grub-probe: error: no mapping exists for `md1'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
# grub-install --modules="lvm raid" --no-floppy /dev/sda
grub-probe: error: no mapping exists for `md1'
grub-probe: error: no mapping exists for `md1'
grub-probe: error: no mapping exists for `md1'
You attempted a cross-disk install, but the filesystem containing /
boot/grub does not support UUIDs.
try metadata=0.90 ?
any takers? place your bets please....
:)
Looks maybe like we will have a little jackpot to split here.
Not sure yet though because I havn't actually rebooted yet.
Just now finishing the latest mdadm --create --metadata=0.90 ...
installation.
# grub-install --no-floppy /dev/sda returns
(hd0) /dev/sda
(hd1) /dev/sdb
# boot-update returns
* Completed successfully.
# # cat /boot/grub/grub.cfg
set timeout=7
menuentry "Funtoo Linux - bzImage" {
insmod raid
insmod mdraid
insmod ext2
set root=(md1)
search --no-floppy --fs-uuid --set c0d19605-5e0f-4fb9-
a626-70a35967019a
linux /bzImage root=/dev/md3
set gfxpayload=keep
}
set default=0
Looks good to me, time to exit, unmount and reboot.
Stay tuned....
Got a kernel panic again on reboot
VFS: Unable to mount root fs on unknown-block(2,0)
Gotta dig deeper....
Later.... bye.
Using the exact same recipe as I just did with a 64bit core2 stage3,
in the exact same way, command-for-command, word-for-word, again from
the top.
But this time using a 32bit core2-32 stage3, will it work?
And most importantly, if it does work, does it still count as a
jackpot win for kdvgent and me? My opinion is yes - who decides these
things around here anyway?
Be back soon......
Have to dig deeper,
tomorrow.
Maybe now a Heineken or something... whatever.
Cheers,
MH
This kernelpanic is imo because missing raid support (kernel) or missing
raid autodetect flag for filesystems (do fdisk -l /dev/sda && fdlisk -l
/dev/sdb).
-- Piotr.
-- snip --
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9 72261 fd Linux raid
autodetect
/dev/sda2 10 647 5124735 82 Linux swap /
Solaris
/dev/sda3 648 1030 3076447+ fd Linux raid
autodetect
/dev/sda4 1031 121601 968486557+ fd Linux raid
autodetect
-- snip --
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9 72261 fd Linux raid
autodetect
/dev/sdb2 10 647 5124735 82 Linux swap /
Solaris
/dev/sdb3 648 1030 3076447+ fd Linux raid
autodetect
/dev/sdb4 1031 121601 968486557+ fd Linux raid
autodetect
kernel raid -> md_mod, raid0, raid1 = all modules
[*] Multiple devices driver support (RAID and LVM)
<M> RAID support
< > Linear (append) mode (NEW)
<M> RAID-0 (striping) mode
<M> RAID-1 (mirroring) mode
You need to bultit it to kernel, not as modules (or load modules by
initramfs, better is compile it in <*>.).
-- Piotr.
This is the core2-32 from yesterday's last attempt, so I guess kdvgent
and me do have a jackpot to split after all, Yippee-ya-yo. :)
Thanks Piotr an all others for tremendous support.
Gonna go boot core2 64 now...
Cheers,
MH
All of it exactly the way I wanted all along, no improvisations or
workarounds - except metadata-0.90 - required. :)
Finally after a week of getting this new box home from the store.....
Bye for now.