Hallo liebes Ubuntu-Forum,
leider tappe ich hier absolut im Dunklen und komme mit meinem Problem nicht weiter. Da dies mein erster Eintrag ist, hoffe ich dass ihr Nachsehen habt, wenn ich nicht gleich alles richtig notiere. Ich gebe mir Mühe!!! 
Ich habe ein Distributions-Upgrade von 9.04 auf 9.10 gemacht ... und jetzt geht nur noch sehr sehr wenig. Hier die Fakten: Ich habe zwei Festplatten, die zu einem RAID 1 verbunden sind: sda und sdb. Zusammen ergeben Sie md0. Hier die Ausgabe von fdisk (in einem funktionierenden Status, wenn ich mit einem alten Kernel hochfahre)
~$ sudo fdisk -l Platte /dev/sda: 250.0 GByte, 250000000000 Byte 255 Köpfe, 63 Sektoren/Spuren, 30394 Zylinder Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes Disk identifier: 0x98deb064 Gerät boot. Anfang Ende Blöcke Id System /dev/sda1 * 30152 30394 1951897+ 82 Linux Swap / Solaris /dev/sda2 1 30151 242187876 fd Linux raid autodetect Partitionstabelleneinträge sind nicht in Platten-Reihenfolge Platte /dev/sdb: 250.0 GByte, 250000000000 Byte 255 Köpfe, 63 Sektoren/Spuren, 30394 Zylinder Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes Disk identifier: 0x000146da Gerät boot. Anfang Ende Blöcke Id System /dev/sdb1 30152 30394 1951897+ 82 Linux Swap / Solaris /dev/sdb2 1 30151 242187876 fd Linux raid autodetect Partitionstabelleneinträge sind nicht in Platten-Reihenfolge Platte /dev/md0: 248.0 GByte, 248000282624 Byte 2 Köpfe, 4 Sektoren/Spuren, 60546944 Zylinder Einheiten = Zylinder von 8 × 512 = 4096 Bytes Disk identifier: 0x00000000 Festplatte /dev/md0 enthält keine gültige Partitionstabelle
Kleine Zwischenfrage: Muss ich mir Sorgen machen, dass /dev/md0 keine gültige Partitionstabelle enthält?
Wenn ich den Rechner hochfahre, dann bekomme ich als Ausgabe das hier (weiß auf schwarzem Bildschirm, hier habe ich es abgetippt): Das ist das Ergebnis, wenn ich mit dem "neuesten" Kernel (2.6.31-17-generic) hochfahre.
Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) Alert! /dev/md0 does not exist. Dropping to a shell! (initramfs) _
Hier ist die Einträge in menu.lst
lydia@marge:/etc$ cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ## default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0 ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 3 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) hiddenmenu # Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # # examples # # title Windows 95/98/NT/2000 # root (hd0,0) # makeactive # chainloader +1 # # title Linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=/dev/md0 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=(hd0,1) ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt= ## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true ## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## title Ubuntu 9.10, kernel 2.6.31-17-generic root (hd0,1) kernel /boot/vmlinuz-2.6.31-17-generic root=/dev/md0 ro quiet splash initrd /boot/initrd.img-2.6.31-17-generic quiet title Ubuntu 9.10, kernel 2.6.31-17-generic (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.31-17-generic root=/dev/md0 ro single initrd /boot/initrd.img-2.6.31-17-generic title Ubuntu 9.10, kernel 2.6.28-17-generic root (hd0,1) kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/md0 ro quiet splash initrd /boot/initrd.img-2.6.28-17-generic quiet title Ubuntu 9.10, kernel 2.6.28-17-generic (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.28-17-generic root=/dev/md0 ro single initrd /boot/initrd.img-2.6.28-17-generic title Ubuntu 9.10, kernel 2.6.27-16-generic root (hd0,1) kernel /boot/vmlinuz-2.6.27-16-generic root=/dev/md0 ro quiet splash initrd /boot/initrd.img-2.6.27-16-generic quiet title Ubuntu 9.10, kernel 2.6.27-16-generic (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.27-16-generic root=/dev/md0 ro single initrd /boot/initrd.img-2.6.27-16-generic title Ubuntu 9.10, kernel 2.6.24-26-generic root (hd0,1) kernel /boot/vmlinuz-2.6.24-26-generic root=/dev/md0 ro quiet splash initrd /boot/initrd.img-2.6.24-26-generic quiet title Ubuntu 9.10, kernel 2.6.24-26-generic (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.24-26-generic root=/dev/md0 ro single initrd /boot/initrd.img-2.6.24-26-generic title Ubuntu 9.10, memtest86+ root (hd0,1) kernel /boot/memtest86+.bin quiet ### END DEBIAN AUTOMAGIC KERNELS LIST
Abschließend noch ein paar Ausgaben, hier könnten die UUID interessant sein (diese Ausgaben sind nach dem Start mit dem zweiten Kernel, kernel 2.6.28-17-generic, erzeugt)
:~$ cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/md0 UUID=ddd23006-7c41-4f4d-8094-df3949110eda / ext3 relatime,errors=remount-ro 0 1 # /dev/sda1 UUID=9815454e-f6ea-4b85-8035-3a755a9df322 none swap sw 0 0 # /dev/sdb1 UUID=c77f3d5b-2871-40fa-8046-11c66a97d3f1 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
~$ sudo blkid /dev/sda1: UUID="9815454e-f6ea-4b85-8035-3a755a9df322" TYPE="swap" /dev/sda2: UUID="22fd0cfb-d1ab-9a1f-944d-545da15d1894" TYPE="linux_raid_member" /dev/sdb1: UUID="c77f3d5b-2871-40fa-8046-11c66a97d3f1" TYPE="swap" /dev/sdb2: UUID="22fd0cfb-d1ab-9a1f-944d-545da15d1894" TYPE="linux_raid_member" /dev/md0: UUID="ddd23006-7c41-4f4d-8094-df3949110eda" TYPE="ext3"
mdadm --detail /dev/md0
[sudo] password for lydia:
/dev/md0:
Version : 00.90
Creation Time : Wed Oct 22 13:28:50 2008
Raid Level : raid1
Array Size : 242187776 (230.97 GiB 248.00 GB)
Used Dev Size : 242187776 (230.97 GiB 248.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Jan 26 19:57:40 2010
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 22fd0cfb:d1ab9a1f:944d545d:a15d1894
Events : 0.17
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2sudo mdadm --detail --scan ARRAY /dev/md0 level=raid1 num-devices=2 metadata=00.90 UUID=22fd0cfb:d1ab9a1f:944d545d:a15d1894
Das schreibe ich, weil nach dem Start mit dem "ersten" Kernel (nachdem er in den initramfs-Modus gegangen ist), folgende Ausgabe kommt (wiederum abgetippt)
cat /etc/mdadm/mdadm.conf ... # definitions of existing MD arrays ARRAY /dev/md0 level=raid1 num-devices=2 UUID=22fd0cfb:d1ab9a1f:944d545d:a15d1894
Ist es normal, dass bei fstab eine andere UUID steht?
So, was die ganze Sache betrifft, bin ich etwas ratlos. Im Folgenden habe ich meine Fragen und Problemlösungsansätze zusammen gefasst:
Es könnte mit dem GRUB zusammenhängen. Wenn ich in dem "alten" Kernel Ubuntu starte, kann ich über Synaptic sehen, dass GRUB 2 nicht installiert ist und hier ist ja auch noch die menu.lst vorhanden. Ich lese aber überall, dass 9.10 nur noch mit GRUB 2 installiert wird... liegt das an dem alten "Kernel"?
In diesem Zusammenhang habe ich auch gelesen, dass GRUB 2 Probleme hat, Raid 1 Systeme zu erkennen. Muss ich also meine beiden Platten komplett neu anlegen, um 9.10 mit GRUB 2 zum Laufen zu bringen?
Es scheint auf diesen Bug hinzuweisen... allerdings bin ich mir nicht so sicher, welche Aktion ich nun machen soll... https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/427048
Gerne tippe ich noch mehr ab oder schicke noch mehr Details... ich bin jetzt schon unendlich dankbar, wenn sie jemand die Mühe macht, dass hier anzuschauen! Alle Ideen probiere ich gerne aus (die Daten sind schon gerettet)!
sugga
aber der neuere (2.6.31-19)
2004 – 2012 ubuntuusers.de • Einige Rechte vorbehalten