View previous topic :: View next topic |
Author |
Message |
IanBallantyne n00b
Joined: 04 Jan 2005 Posts: 52 Location: Austria
|
Posted: Thu Jan 12, 2006 12:22 am Post subject: Kernel Panic - can't mount root, using raid-1 |
|
|
Hello everybody!
I'm setting up Gentoo on an Ultra 10 which has two identical 20Gb drives and have used gentoo-sparc 2005.1. The machine is meant to become the server for our local linux users group (luga.at), and as such I have gone for a raid-1 right from the start. I have also used LVM for everything except the root partition. Setting all this up has been successful in so far as I can do everything from the live cd, including chrooting, using the lvm partitions, even got as far as running silo without error.
After rebooting, silo starts correctly, and I can start booting. I see all the messages related to the md devices and lvm devices and see nothing wrong there. When the kernel tries to mount the root partition, it panics saying it cant mount the root partition:
ext3-fs unable to read superblock
ext2-fs, unable to read superblock
The kernel is in /boot which is on the root partition, so it seems to be found by silo.
(The above paragraph was edited 24 hours after the original post for better readability)
It seems my kernel is correctly configured, I put everything in there related to raid-1, metadevices and lvm, (.config extract below), and trying /dev/md1 and /dev/md/1 makes no difference, the partitions are type fd which as I understand is correct for a raid partition, silo refers to the /dev/md/1 as the root partition.
I am really at a loss as to what's going wrong and would appreciate any pointers anyone can give me for how I can get this working.
regards
Ian
Extract from .config (kernel 2.4.31-r2)
Code: |
#
# Block devices
#
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_NBD=m
#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=y
CONFIG_MD_RAID5=m
CONFIG_MD_MULTIPATH=m
CONFIG_BLK_DEV_LVM=y
CONFIG_BLK_DEV_RAM=m
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
|
/etc/raidtab
Note that I commented out chunksize because I was getting errors saying chunksize is not necessary in raid-1.
Code: |
# / (RAID 1) root
raiddev /dev/md/1
raid-level 1
nr-raid-disks 2
# chunk-size 32
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hdd1
raid-disk 1
# swap (RAID 1)
raiddev /dev/md/2
raid-level 1
nr-raid-disks 2
# chunk-size 32
persistent-superblock 1
device /dev/hda2
raid-disk 0
device /dev/hdd2
raid-disk 1
# LVM (RAID 1)
raiddev /dev/md/4
raid-level 1
nr-raid-disks 2
# chunk-size 32
persistent-superblock 1
device /dev/hda4
raid-disk 0
device /dev/hdd4
raid-disk 1
|
Output of fdisk -l
Code: |
fdisk -l
Disk /dev/vg1/usr: 536 MB, 536870912 bytes
128 heads, 128 sectors/track, 64 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/usr doesn't contain a valid partition table
Disk /dev/vg1/var: 134 MB, 134217728 bytes
128 heads, 128 sectors/track, 16 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/var doesn't contain a valid partition table
Disk /dev/vg1/varlog: 536 MB, 536870912 bytes
128 heads, 128 sectors/track, 64 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/varlog doesn't contain a valid partition table
Disk /dev/vg1/vartmp: 536 MB, 536870912 bytes
128 heads, 128 sectors/track, 64 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/vartmp doesn't contain a valid partition table
Disk /dev/vg1/home: 4294 MB, 4294967296 bytes
128 heads, 128 sectors/track, 512 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/home doesn't contain a valid partition table
Disk /dev/vg1/portage: 2147 MB, 2147483648 bytes
128 heads, 128 sectors/track, 256 cylinders
Units = cylinders of 16384 * 512 = 8388608 bytes
Disk /dev/vg1/portage doesn't contain a valid partition table
Disk /dev/md/1 (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/md/1p1 0 992 499968 fd Linux raid autodetect
/dev/md/1p2 992 3472 1249920 fd Linux raid autodetect
/dev/md/1p3 0 38790 19550160 5 Whole disk
/dev/md/1p4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/md/2: 1279 MB, 1279852544 bytes
2 heads, 4 sectors/track, 312464 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md/2 doesn't contain a valid partition table
Disk /dev/md/4: 18.2 GB, 18227396608 bytes
2 heads, 4 sectors/track, 4450048 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md/4 doesn't contain a valid partition table
Disk /dev/ide/host0/bus1/target1/lun0/disc (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus1/target1/lun0/part1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus1/target1/lun0/part4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/ide/host0/bus1/target1/lun0/part1 (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus1/target1/lun0/part1p1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part1p2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part1p3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus1/target1/lun0/part1p4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/ide/host0/bus1/target1/lun0/part3 (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus1/target1/lun0/part3p1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part3p2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus1/target1/lun0/part3p3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus1/target1/lun0/part3p4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/ide/host0/bus0/target0/lun0/disc (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus0/target0/lun0/part4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/ide/host0/bus0/target0/lun0/part1 (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1p1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part1p2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part1p3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus0/target0/lun0/part1p4 3472 38790 17800272 fd Linux raid autodetect
Disk /dev/ide/host0/bus0/target0/lun0/part3 (Sun disk label): 16 heads, 63 sectors, 38790 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part3p1 0 992 499968 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part3p2 992 3472 1249920 fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part3p3 0 38790 19550160 5 Whole disk
/dev/ide/host0/bus0/target0/lun0/part3p4 3472 38790 17800272 fd Linux raid autodetect
|
/etc/fstab
Code: |
# See the manpage fstab(5) for more information.
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/md/1 / ext3 noatime,auto 0 1
/dev/vg1/usr /usr ext3 noatime,auto 0 2
/dev/vg1/var /var ext3 noatime,auto 0 2
/dev/vg1/vartmp /var/tmp ext3 noatime,noexec,nodev,auto 0 2
/dev/vg1/varlog /var/log ext3 noatime,noexec,nodev,auto 0 2
/dev/vg1/portage /usr/portage ext3 noatime,auto 0 2
/dev/vg1/home /home ext3 noatime,auto 0 2
none /tmp tmpfs nodev,nosuid,noexec,noatime 0 0
none /proc/openprom openpromfs defaults 0 0
/dev/md/2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 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
|
Just an edit to my post because I forgot my silo.conf file
Code: |
partition = 1
append="md=1,/dev/hda1,/dev/hdd1"
root = /dev/md/1
timeout = 150
image = /boot/kernel-2.4.31-r2
label = linux-2.4.31-raid
# And if you press L, you will see long listing of your /lib/modules/ :)
image = "ls -l /lib/modules/"
label = L
single-key
|
|
|
Back to top |
|
|
Toady Apprentice
Joined: 21 Dec 2004 Posts: 161 Location: South Wales, UK
|
Posted: Fri Jan 13, 2006 11:11 am Post subject: |
|
|
I have a funny feeling that this is your problem :
Code: | /dev/md/1p1 0 992 499968 fd Linux raid autodetect |
I dont think you should start at cyl 0 for partitions to be used in RAID.
Try starting at cyl 1 on both disks and see if that helps. - somone correct me if I am wrong here. _________________ Toady
Gentoo Laptop
3.1.10-gentoo-r1, Intel Core 2 Duo (32bit)
Gnome on the desk, Intel in the box, on-board everything, but it all works! |
|
Back to top |
|
|
IanBallantyne n00b
Joined: 04 Jan 2005 Posts: 52 Location: Austria
|
Posted: Sun Jan 22, 2006 3:04 pm Post subject: |
|
|
Thanks for the suggestion. I made the change on both partitions so that the first partition starts at track 1, but the problem persists. As before the raid-1 seems to be started correctly, messages like raid: set md1 active with 2 out of 2 mirrors, it takes the correct partitions, and all seems to be ok.
Are there any other suggestions as to why the system can't mount the root partition?
EXT3-fs: unable to read superblock
EXT2-fs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 09:00 |
|
Back to top |
|
|
|
|
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
|
|