totycro
27.05.08, 08:35
Hallo,
Ich habe mir unlängst 2 Festplatten (500GB Samsung S-ATA II 501LJ 16MB) zugelegt, und möchte die als Raid betreiben:
md0: /boot aus sda1, sdb1 als level 1
md1: / aus sda2, sdb2 als level 0
md2: swap aus sda3, sdb3 als level 0
Vorgegangen bin ich nach dieser Anleitung aus dem Gentoo Wiki: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID
Es funktioniert auch alles außer dem Booten, da erscheint die Fehlermeldung "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,1)", davor werden meine Partitionen mit irgendwelchen Zusatzinformation angezeigt. (Ich weiß nicht, wie ich die vorherigen Meldungen anzeigen lassen kann, sie werden ja nicht auf der Festplatte gespeichert)
Die Raid- (raid0 und raid1), Dateisystem- (ext3) und SATA-Controller-Treiber sind in den Kernel fest einkompiliert:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
[...]
CONFIG_EXT3_FS=y
[...]
CONFIG_SATA_SIS=y
Hat jemand eine Idee, wie ich den Kernel zum Booten bewegen könnte?
INFOS:
Kernel Sourcen: linux-2.6.25-gentoo-r4
fstab:
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/md0 /boot ext3 noauto,noatime 1 2
/dev/md1 / ext3 noatime 0 1
/dev/md2 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
mdadm.conf:
DEVICE /dev/sd[ab][123]
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=2 name=0 UUID=d07d9e58:df8f5d5c:b559f913:d3db5ff4
ARRAY /dev/md1 level=raid0 num-devices=2 name=1 UUID=6a480871:ea8ae5d5:73662027:4089abb1
ARRAY /dev/md2 level=raid0 num-devices=2 name=2 UUID=4e8cca2f:50420ab2:f8a670e2:1a58fe58
fdisk -l /dev/sda:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ fd Linux raid autodetect
/dev/sda2 13 60758 487942245 fd Linux raid autodetect
/dev/sda3 60759 60801 345397+ fd Linux raid autodetect
fdisk -l /dev/sdb:
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12 96358+ fd Linux raid autodetect
/dev/sdb2 13 60758 487942245 fd Linux raid autodetect
/dev/sdb3 60759 60801 345397+ fd Linux raid autodetect
lspci -v:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 760/M760 Host (rev 03)
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32
Memory at d0000000 (32-bit, non-prefetchable) [size=128M]
Capabilities: [a0] AGP version 3.1
Capabilities: [d0] HyperTransport: Slave or Primary Interface
Capabilities: [f0] HyperTransport: Interrupt Discovery and Configuration
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202 (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 99
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e8000000-e80fffff
Prefetchable memory behind bridge: d8000000-e7ffffff
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS964 [MuTIOL Media IO] (rev 36)
Flags: bus master, medium devsel, latency 0
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01) (prog-if 80 [Master])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 128
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at 4000 [size=16]
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 18
Memory at e8125000 (32-bit, non-prefetchable) [size=4K]
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 19
Memory at e8120000 (32-bit, non-prefetchable) [size=4K]
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at e8121000 (32-bit, non-prefetchable) [size=4K]
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller (prog-if 20 [EHCI])
Subsystem: Silicon Integrated Systems [SiS] USB 2.0 Controller
Flags: bus master, medium devsel, latency 32, IRQ 17
Memory at e8122000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 2
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at e000 [size=256]
Memory at e8123000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 40000000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
00:05.0 IDE interface: Silicon Integrated Systems [SiS] RAID bus controller 180 SATA/PATA [SiS] (rev 01) (prog-if 85 [Master SecO PriO])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
I/O ports at ed00 [size=8]
I/O ports at e800 [size=4]
I/O ports at e900 [size=8]
I/O ports at ea00 [size=4]
I/O ports at eb00 [size=16]
I/O ports at <unassigned>
Capabilities: [58] Power Management version 2
00:08.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value
Subsystem: Creative Labs Device 1001
Flags: bus master, medium devsel, latency 32, IRQ 22
I/O ports at ec00 [size=64]
Capabilities: [dc] Power Management version 2
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at e400 [size=256]
Memory at e8124000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
Flags: fast devsel
Capabilities: [80] HyperTransport: Host or Secondary Interface
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
Flags: fast devsel
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Flags: fast devsel
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Flags: fast devsel
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 NJ [Radeon 9800 XT] (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 9560
Flags: bus master, stepping, 66MHz, medium devsel, latency 32, IRQ 5
Memory at d8000000 (32-bit, prefetchable) [size=128M]
I/O ports at d000 [size=256]
Memory at e8030000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at e8000000 [disabled] [size=128K]
Capabilities: [58] AGP version 3.0
Capabilities: [50] Power Management version 2
01:00.1 Display controller: ATI Technologies Inc RV350 NJ [Radeon 9800 XT] (Secondary)
Subsystem: Micro-Star International Co., Ltd. Device 9561
Flags: stepping, 66MHz, medium devsel
Memory at e0000000 (32-bit, prefetchable) [disabled] [size=128M]
Memory at e8020000 (32-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: [50] Power Management version 2
grub.conf:
timeout 10
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title naql
root (hd0,0)
kernel /boot/kernel root=/dev/md1 md=1,/dev/sda2,/dev/sdb2
boot
Kernel Config:
http://phpfi.com/319946
Ich habe mir unlängst 2 Festplatten (500GB Samsung S-ATA II 501LJ 16MB) zugelegt, und möchte die als Raid betreiben:
md0: /boot aus sda1, sdb1 als level 1
md1: / aus sda2, sdb2 als level 0
md2: swap aus sda3, sdb3 als level 0
Vorgegangen bin ich nach dieser Anleitung aus dem Gentoo Wiki: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID
Es funktioniert auch alles außer dem Booten, da erscheint die Fehlermeldung "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,1)", davor werden meine Partitionen mit irgendwelchen Zusatzinformation angezeigt. (Ich weiß nicht, wie ich die vorherigen Meldungen anzeigen lassen kann, sie werden ja nicht auf der Festplatte gespeichert)
Die Raid- (raid0 und raid1), Dateisystem- (ext3) und SATA-Controller-Treiber sind in den Kernel fest einkompiliert:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
[...]
CONFIG_EXT3_FS=y
[...]
CONFIG_SATA_SIS=y
Hat jemand eine Idee, wie ich den Kernel zum Booten bewegen könnte?
INFOS:
Kernel Sourcen: linux-2.6.25-gentoo-r4
fstab:
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/md0 /boot ext3 noauto,noatime 1 2
/dev/md1 / ext3 noatime 0 1
/dev/md2 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
mdadm.conf:
DEVICE /dev/sd[ab][123]
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=2 name=0 UUID=d07d9e58:df8f5d5c:b559f913:d3db5ff4
ARRAY /dev/md1 level=raid0 num-devices=2 name=1 UUID=6a480871:ea8ae5d5:73662027:4089abb1
ARRAY /dev/md2 level=raid0 num-devices=2 name=2 UUID=4e8cca2f:50420ab2:f8a670e2:1a58fe58
fdisk -l /dev/sda:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ fd Linux raid autodetect
/dev/sda2 13 60758 487942245 fd Linux raid autodetect
/dev/sda3 60759 60801 345397+ fd Linux raid autodetect
fdisk -l /dev/sdb:
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12 96358+ fd Linux raid autodetect
/dev/sdb2 13 60758 487942245 fd Linux raid autodetect
/dev/sdb3 60759 60801 345397+ fd Linux raid autodetect
lspci -v:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 760/M760 Host (rev 03)
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32
Memory at d0000000 (32-bit, non-prefetchable) [size=128M]
Capabilities: [a0] AGP version 3.1
Capabilities: [d0] HyperTransport: Slave or Primary Interface
Capabilities: [f0] HyperTransport: Interrupt Discovery and Configuration
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202 (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 99
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e8000000-e80fffff
Prefetchable memory behind bridge: d8000000-e7ffffff
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS964 [MuTIOL Media IO] (rev 36)
Flags: bus master, medium devsel, latency 0
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01) (prog-if 80 [Master])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 128
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at 4000 [size=16]
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 18
Memory at e8125000 (32-bit, non-prefetchable) [size=4K]
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 19
Memory at e8120000 (32-bit, non-prefetchable) [size=4K]
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at e8121000 (32-bit, non-prefetchable) [size=4K]
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller (prog-if 20 [EHCI])
Subsystem: Silicon Integrated Systems [SiS] USB 2.0 Controller
Flags: bus master, medium devsel, latency 32, IRQ 17
Memory at e8122000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 2
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at e000 [size=256]
Memory at e8123000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 40000000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
00:05.0 IDE interface: Silicon Integrated Systems [SiS] RAID bus controller 180 SATA/PATA [SiS] (rev 01) (prog-if 85 [Master SecO PriO])
Subsystem: Foxconn International, Inc. Device 0c92
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
I/O ports at ed00 [size=8]
I/O ports at e800 [size=4]
I/O ports at e900 [size=8]
I/O ports at ea00 [size=4]
I/O ports at eb00 [size=16]
I/O ports at <unassigned>
Capabilities: [58] Power Management version 2
00:08.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value
Subsystem: Creative Labs Device 1001
Flags: bus master, medium devsel, latency 32, IRQ 22
I/O ports at ec00 [size=64]
Capabilities: [dc] Power Management version 2
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at e400 [size=256]
Memory at e8124000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
Flags: fast devsel
Capabilities: [80] HyperTransport: Host or Secondary Interface
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
Flags: fast devsel
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Flags: fast devsel
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Flags: fast devsel
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 NJ [Radeon 9800 XT] (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 9560
Flags: bus master, stepping, 66MHz, medium devsel, latency 32, IRQ 5
Memory at d8000000 (32-bit, prefetchable) [size=128M]
I/O ports at d000 [size=256]
Memory at e8030000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at e8000000 [disabled] [size=128K]
Capabilities: [58] AGP version 3.0
Capabilities: [50] Power Management version 2
01:00.1 Display controller: ATI Technologies Inc RV350 NJ [Radeon 9800 XT] (Secondary)
Subsystem: Micro-Star International Co., Ltd. Device 9561
Flags: stepping, 66MHz, medium devsel
Memory at e0000000 (32-bit, prefetchable) [disabled] [size=128M]
Memory at e8020000 (32-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: [50] Power Management version 2
grub.conf:
timeout 10
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title naql
root (hd0,0)
kernel /boot/kernel root=/dev/md1 md=1,/dev/sda2,/dev/sdb2
boot
Kernel Config:
http://phpfi.com/319946