View previous topic :: View next topic |
Author |
Message |
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Fri Jul 18, 2014 5:32 am Post subject: Something is missing in Kernel for raid1 Intel 8c |
|
|
Hi I have a new server and I can´t figure out why it hangs on boot.
In kvm rescue mode I can boot from harddisk, but it uses emulated hardware so it doesn´t help.
It is a Software raid 1, with an empty initramfs. I use Grub2 and raid version 1.2.
Kernel config: http://nopaste.info/89eb7c9232.html
lspci:
Code: |
00:00.0 Host bridge: Intel Corporation Device 0c00 (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Device 0412 (rev 06)
00:14.0 USB Controller: Intel Corporation Device 8c31 (rev 04)
00:16.0 Communication controller: Intel Corporation Device 8c3a (rev 04)
00:1a.0 USB Controller: Intel Corporation Device 8c2d (rev 04)
00:1c.0 PCI bridge: Intel Corporation Device 8c10 (rev d4)
00:1c.1 PCI bridge: Intel Corporation Device 8c12 (rev d4)
00:1c.3 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)
00:1d.0 USB Controller: Intel Corporation Device 8c26 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Device 8c4a (rev 04)
00:1f.2 SATA controller: Intel Corporation Device 8c02 (rev 04)
00:1f.3 SMBus: Intel Corporation Device 8c22 (rev 04)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
03:00.0 PCI bridge: Device 1b21:1080 (rev 03)
|
Maybe someone can help me, I´m stuck. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Fri Jul 18, 2014 6:21 am Post subject: |
|
|
Thanks for your prompt reply.
I think I have an initramfs,
CONFIG_BLK_DEV_INITRD=y
I use it in grub.conf,
Code: | title=Gentoo Linux (3.12.21-gentoo-r1)
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.12.21-gentoo-r1 root=/dev/ram0 real_root=/dev/md2
initrd /boot/initramfs-genkernel-x86_64-3.12.21-gentoo-r1 |
But maybe the initrd is wrong configured? I didn´t used a initrd since 2006, I don´t know why someone probably want it. (Expect the sad case that you have to.)
EDIT:
A, i missed, I meant in grub.cfg *sigh* hate this shit.
Code: | menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-46de143b-f1a3-4253-b623-d78b1380d1d6' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/abab996043b0da5ccc6a4fa1b27a9ebc'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/abab996043b0da5ccc6a4fa1b27a9ebc' d3d89835-b701-420e-b711-777ca6b3ea8c
else
search --no-floppy --fs-uuid --set=root d3d89835-b701-420e-b711-777ca6b3ea8c
fi
echo 'Linux x86_64-3.12.21-gentoo-r1 wird geladen …'
linux /kernel-genkernel-x86_64-3.12.21-gentoo-r1 root=UUID=46de143b-f1a3-4253-b623-d78b1380d1d6 ro dolvm domdadm
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-genkernel-x86_64-3.12.21-gentoo-r1
} |
EDIT I read the whole initramfs shit, I think I will go back to Raid metadata 0.9
Too much sources of error with an initramfs. (Who want that?! And why?!)
I´ll be back later. |
|
Back to top |
|
|
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Tue Jul 22, 2014 12:06 pm Post subject: |
|
|
Hi,
so I installed a Software raid1 with 0.9 metadata and grub-legacy.
/dev/md1 is /boot
/dev/md2 is / (sda3 and sdb3)
But booting ends up in kernel panic, caused by cannot mount rootfs
I use Kernel 3.15.6, this is the actual config
http://nopaste.info/6c527b9376.html
//menu.lst:
title Gentoo Linux
root (hd0,1)
kernel /boot/bzImage-3.15.6 root=/dev/sda3 |
|
Back to top |
|
|
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Wed Jul 23, 2014 7:04 pm Post subject: |
|
|
Anyone please help me.
I have no clue why the kernel hangs on boot. I am really frustrated at the moment.
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Jul 23, 2014 7:12 pm Post subject: |
|
|
suggest posting a picture of the panic screen and run
Code: | fdisk -l | wgetpaste | post the url's
install media find the arrays? _________________ Defund the FCC. |
|
Back to top |
|
|
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Wed Jul 23, 2014 7:26 pm Post subject: |
|
|
Hi,
unfortunately I can only make a kernel panic picture from the kvm, since it is a server.
And I can´t see the error messages above
[IMG]http://i59.tinypic.com/igdb9t.jpg[/IMG]
http://i59.tinypic.com/igdb9t.jpg
best regards
EDIT: fdisk is coming in a minute
EDIT: I didn´t knew wgetpaste before, nice.
http://bpaste.net/show/491949/ |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Jul 24, 2014 6:29 am Post subject: |
|
|
Unable to mount rootfs on unknown-block(8,3) tells us that the cmdline that is passed to the kernel is telling the kernel "root=/dev/sda3".
https://www.kernel.org/doc/Documentation/devices.txt refers.
It should be looking for block (9,1) or similar; major 9, minor ? _________________ Defund the FCC. |
|
Back to top |
|
|
jows n00b
Joined: 12 Jan 2013 Posts: 11
|
Posted: Thu Jul 24, 2014 6:40 am Post subject: |
|
|
Hi,
ls -all told me that it should be correct. /dev/sda3 and /dev/sdb3 builds /dev/md2 which contains the root fs.
Code: | rescue / # ls -all /dev/sda3
brw-rw---T 1 root disk 8, 3 23. Jul 21:28 /dev/sda3 |
EDIT: Should it really looking for 9,2?
I thought the Kernel will stripping the raid together for itself while mounting. (When using metadata 0.9 and grub-legacy)
Code: |
rescue / # ls -all /dev/md2
brw-rw---T 1 root disk 9, 2 23. Jul 21:28 /dev/md2 |
EDIT: I tried root=/dev/md2 just for the case. But it doesn´t work. It tolds 8,3 like before..
EDIT: Oh my god, hold on!
It works. I edited the shitty /grub.cfg or .conf before!
Thank you so much!
But one question left: Why says every site that you have to use /dev/sdax in this constellation? o0
I can´t believe that this was it all! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Jul 24, 2014 9:15 am Post subject: |
|
|
wondering why fdisk does not show partitions on md1 and particularly md2. boot the install media, preferably sysresccd, run:
Code: | mdadm -Q /dev/sda
mdadm -Q /dev/sda1
mdadm -Q /dev/sda2
mdadm -Q /dev/sda3
mdadm -Q /dev/sdb
mdadm -Q /dev/sdb1
mdadm -Q /dev/sdb2
mdadm -Q /dev/sdb3
mdadm -E /dev/md0
mdadm -E /dev/md0p1
mdadm -E /dev/md1
mdadm -E /dev/md2
mdadm -D /dev/md0
mdadm -D /dev/md0p1
mdadm -D /dev/md1
mdadm -D /dev/md2 | look for inconsistencies, wgetpaste
nevermind, just saw your edit after i posted this
suspect you were seeing 'grub-install /dev/sda' and 'root=/dev/sda3' for non-raid installs, hooray for panic pictures! googling around found 1 of 10 mdraid sites that mention root=/dev/md3 _________________ Defund the FCC. |
|
Back to top |
|
|
|