View previous topic :: View next topic |
Author |
Message |
KaterGonzo Apprentice
Joined: 01 Apr 2004 Posts: 155
|
Posted: Tue Feb 04, 2014 3:27 pm Post subject: GRUB2 + RAID-1 (mdadm) + root block device |
|
|
Hey guys,
i've got some trouble to get Gentoo running on a raid-1 volume. I created the raid partitions using the current Gentoo Live CD. Problem: after grub boots the system hangs on finding the root block device.
This is what I've done:
Quote: | error message
>> Activating MDEV
>> Loading Modules
Could not find the ROOT BLOCK DEVICE in UUID(8ab1db45-7f3b-41cb-8ec4-741cc84f2509)
livecd ~ # mdadm -C /dev/md0 -l 1 -n 2 missing /dev/sdb1
livecd ~ # mdadm -C /dev/md1 -l 1 -n 2 missing /dev/sdb2
livecd ~ # mdadm -C /dev/md2 -l 1 -n 2 missing /dev/sdb3
# mdadm --detail --scan
ARRAY /dev/md0 metadata=1.2 name=livecd:0 UUID=d60afba7:b77c4564:e0afd40c:49a16cd0
ARRAY /dev/md1 metadata=1.2 name=livecd:1 UUID=bdcd4cd1:b0e295cf:4bd81e06:185a1faa
ARRAY /dev/md2 metadata=1.2 name=livecd:2 UUID=6ce06d74:ae11bdb4:921035ff:2af88ad0
livecd ~ # mount /dev/md2 /mnt/gentoo/
livecd ~ # mount /dev/md0 /mnt/gentoo/boot/
livecd ~ # mount -t proc none /mnt/gentoo/proc
livecd ~ # mount --rbind /sys /mnt/gentoo/sys
livecd ~ # mount --rbind /dev /mnt/gentoo/dev
livecd ~ # chroot /mnt/gentoo /bin/bash
livecd / # source /etc/profile
livecd / # export PS1="(chroot) $PS1"
(chroot) livecd / # mdadm --detail --scan
ARRAY /dev/md0 metadata=1.2 name=livecd:0 UUID=d60afba7:b77c4564:e0afd40c:49a16cd0
ARRAY /dev/md1 metadata=1.2 name=livecd:1 UUID=bdcd4cd1:b0e295cf:4bd81e06:185a1faa
ARRAY /dev/md2 metadata=1.2 name=livecd:2 UUID=6ce06d74:ae11bdb4:921035ff:2af88ad0
(chroot) livecd / # blkid
/dev/sda1: UUID="12578748-df9c-48c1-9955-cf3913d19073" TYPE="ext2"
/dev/sda2: UUID="a30d6bcd-f8ba-4d2e-9cef-840359a3da84" TYPE="swap"
/dev/sda3: UUID="1154d403-17c1-4fb8-80e9-8b48acabde06" TYPE="reiserfs"
/dev/sdb1: UUID="d60afba7-b77c-4564-e0af-d40c49a16cd0" UUID_SUB="17fb06bd-2336-a18a-ed68-cfa8c04b7b27" LABEL="livecd:0" TYPE="linux_raid_member"
/dev/sdb2: UUID="bdcd4cd1-b0e2-95cf-4bd8-1e06185a1faa" UUID_SUB="0db7886e-d6c9-6664-1457-ab589665b7df" LABEL="livecd:1" TYPE="linux_raid_member"
/dev/sdb3: UUID="6ce06d74-ae11-bdb4-9210-35ff2af88ad0" UUID_SUB="920c1252-3430-0675-68d5-6975083b61a8" LABEL="livecd:2" TYPE="linux_raid_member"
/dev/sr0: UUID="2014-01-16-08-08-39-00" LABEL="Gentoo Linux amd64 20140116" TYPE="iso9660" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"
/dev/md0: UUID="32bdad3d-4b6b-4e3d-a1fc-61b207d2d419" TYPE="ext2"
/dev/md1: UUID="2219dde5-cfe1-45e5-956f-abf99513f5a3" TYPE="swap"
/dev/md2: UUID="8ab1db45-7f3b-41cb-8ec4-741cc84f2509" TYPE="reiserfs"
(chroot) livecd / # genkernel --mdadm --lvm initramfs
(chroot) livecd / # grub2-install /dev/sdb
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.
(chroot) livecd / # grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found linux image: /boot/kernel-3.11.7
Found initrd image: /boot/initramfs-3.11.7.img
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
done
(chroot) livecd / # vi /boot/grub/grub.cfg
[...]
menuentry 'Gentoo GNU/Linux 1551' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8ab1db45-7f3b-41cb-8ec4-741cc84f2509' {
load_video
insmod gzio
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/d60afba7b77c4564e0afd40c49a16cd0'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/d60afba7b77c4564e0afd40c49a16cd0' 32bdad3d-4b6b-4e3d-a1fc-61b207d2d419
else
search --no-floppy --fs-uuid --set=root 32bdad3d-4b6b-4e3d-a1fc-61b207d2d419
fi
echo 'Loading Linux 3.11.7 ...'
linux /kernel-3.11.7 root=UUID=8ab1db45-7f3b-41cb-8ec4-741cc84f2509 ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.11.7.img
}
[...]
(chroot) livecd / # fdisk -l /dev/sdb
Disk /dev/sdb: 80.0 GB, 80026361856 bytes, 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5db2d17c
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 fd Linux raid autodetect
/dev/sdb2 206848 4401151 2097152 fd Linux raid autodetect
/dev/sdb3 4401152 156301487 75950168 fd Linux raid autodetect
(chroot) livecd / # lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 01)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03) |
Where is the mistake? |
|
Back to top |
|
|
spike88 n00b
Joined: 16 Oct 2012 Posts: 17
|
Posted: Mon Feb 17, 2014 11:06 pm Post subject: |
|
|
is your kernel supporting the reiser fs _________________ Gentoo Rocks thanks! |
|
Back to top |
|
|
KaterGonzo Apprentice
Joined: 01 Apr 2004 Posts: 155
|
Posted: Tue Feb 18, 2014 7:07 am Post subject: |
|
|
Yes, it does!
I resolved this problem by going back to old software versions: grub legacy & superblock 0.9. |
|
Back to top |
|
|
|