warning mdadm: system is now unbootable

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

warning mdadm: system is now unbootable

Beitrag von supachamp » 07.06.2014 15:11:54

Hallo,

ich habe mein debian 6 System ge-updated. Alles lief prima durch, doch erschien folgende Warnung, die mir Angst macht:

update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
W: mdadm: the array /dev/md1 with UUID a2c10f00:a3b39373:3fb6082e:e5593158
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
W: mdadm: the array /dev/md3 with UUID 6760e1d5:de4790a7:3fb6082e:e5593158
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.


Ein Blick in die /etc/mdadm/mdadm.conf zeigt:

Code: Alles auswählen

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays

# This file was auto-generated on Tue, 19 Feb 2008 16:26:42 +0100
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $

ARRAY /dev/md1 level=raid1 num-devices=2 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md3 level=raid1 num-devices=2 devices=/dev/sda3,/dev/sdb3
Und die Ausgabe von /usr/share/mdadm/mkconf zeigt

Code: Alles auswählen

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md1 UUID=a2c10f00:a3b39373:3fb6082e:e5593158
ARRAY /dev/md3 UUID=6760e1d5:de4790a7:3fb6082e:e5593158
Offensichtlich sind die letzten beiden Zeilen verschieden. Ist das ok so? Oder muss ich die Datei /etc/mdadm/mdadm.conf entsprechend anpassen? Die Werte in der /etc/mdadm/mdadm.conf sind unverändert geblieben während des updates. Also mit diesen (vermeintlich falschen) Werten lief es bis jetzt immer alles gut.

Hier noch die fstab:

Code: Alles auswählen

cat /etc/fstab
/dev/md1	/		ext3    defaults        1 1
/dev/sda2	none		swap    sw 	        
/dev/sdb2	none		swap    sw 	        
/dev/vg00/dev/vg00/dev/vg00/dev/vg00/dev/vg00/dev/vg00/usr   /usr    	xfs     defaults        0 2
/dev/vg00/var   /var    	xfs     defaults,usrquota       0 2
/dev/vg00/home	/home		xfs	defaults,usrquota	0 2
devpts		/dev/pts	devpts  gid=5,mode=620  0 0
none		/proc		proc    defaults        0 0
none		/tmp	tmpfs   defaults        0 0
Vielen Dank für Eure Hilfe vorab!!!

Grüße!

dirk11
Beiträge: 2842
Registriert: 02.07.2013 11:47:01

Re: warning mdadm: system is now unbootable

Beitrag von dirk11 » 07.06.2014 15:35:06

Umstellung auf UUID. Ich würde sagen, UUIDs überprüfen und die neue Datei übernehmen. Aber erstmal andere Meinungen hier abwarten!!!

supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

Re: warning mdadm: system is now unbootable

Beitrag von supachamp » 07.06.2014 15:36:19

Wie bekomme ich die UUIDs raus?

dirk11
Beiträge: 2842
Registriert: 02.07.2013 11:47:01

Re: warning mdadm: system is now unbootable

Beitrag von dirk11 » 07.06.2014 15:58:57

Im Verzeichnis /dev/disk/by-uuid kannst du links von uuid auf Partition sehen.

supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

Re: warning mdadm: system is now unbootable

Beitrag von supachamp » 07.06.2014 16:51:55

Ich erhalte folgendes:

Code: Alles auswählen

/dev/disk/by-id# ll
[...]
lrwxrwxrwx 1 root root  9 Nov 26  2013 md-uuid-6760e1d5:de4790a7:3fb6082e:e5593158 -> ../../md3
lrwxrwxrwx 1 root root  9 Nov 26  2013 md-uuid-a2c10f00:a3b39373:3fb6082e:e5593158 -> ../../md1
[...]    

Code: Alles auswählen

/dev/disk/by-uuid# ll
total 0
lrwxrwxrwx 1 root root 10 Nov 26  2013 04c50a00-d986-4b71-b307-8c80c7b56907 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 26  2013 890f6aa5-bc02-4701-a161-89ef64e6c16a -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 26  2013 beceb79a-57b0-4444-be3a-2529a7f4a38f -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 26  2013 c3de1c2d-498a-405a-8d0a-b5d5d9ce4bb4 -> ../../sda2
lrwxrwxrwx 1 root root  9 Nov 26  2013 c9ba3564-bb1e-4e3c-b27f-aa54fd2d7461 -> ../../md1
lrwxrwxrwx 1 root root 10 Nov 26  2013 d70ed3b5-4b76-4008-a886-34308ece3586 -> ../../dm-2 
Die Einträge unter by-id sind die gleichen wie ich vom Skript erhalte.

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: warning mdadm: system is now unbootable

Beitrag von Cae » 07.06.2014 17:56:16

Verwende die beiden geaenderten Zeilen mit den UUIDs drin fuer die /etc/mdadm/mdadm.conf. Das sollte, wie vermutet, der Grund sein, warum update-initramfs sich beschwert. Du kannst ja nochmal mit dem Output von

Code: Alles auswählen

# mdadm --examine --scan
vergleichen, der sollte so auch im mkconfig-Output aufauchen. Anschliessend nochmal haendisch

Code: Alles auswählen

# update-initramfs -u
anstossen und die Meldungen sichten. Moeglicherweise braucht update-initramfs auch spezifische Angaben (-k), fuer welchen Kernel die initrd zu bauen ist. Default ist "der neuste", falls das also alles aus den offiziellen Debian-Repos kommt, sollte es so stimmen. Bei Selbstbau-Kerneln ist das vielleicht nicht so eindeutig.

Die Suche nach den UUIDs ist zwar nicht verkehrt, aber mdadm --examine --scan nimmt einem das ab. Auch bei meinem Vorschlag ist es empfehlenswert, eine Zweitmeinung abzuwarten, falls ich etwas uebersehe.

Moeglicherweise ist wegen dieses Fehlers auch die Erzeugung der grub.cfg gescheitert (hab' ich aber keinen Hinweis darauf), daher empfiehlt sich danach ein (unkritisches) update-grub.

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

Re: warning mdadm: system is now unbootable

Beitrag von supachamp » 07.06.2014 19:45:49

Der Scan zeigt genau die vermuteten UUIDs:

Code: Alles auswählen

mdadm --examine --scan
ARRAY /dev/md1 UUID=a2c10f00:a3b39373:3fb6082e:e5593158
ARRAY /dev/md3 UUID=6760e1d5:de4790a7:3fb6082e:e5593158
Ich habe keinen Kernel händisch installiert. Alles kommt aus den Debian-Repos.

dufty2
Beiträge: 1714
Registriert: 22.12.2013 16:41:16

Re: warning mdadm: system is now unbootable

Beitrag von dufty2 » 07.06.2014 19:58:23

supachamp hat geschrieben:
/dev/vg00/dev/vg00/dev/vg00/dev/vg00/dev/vg00/dev/vg00/usr /usr xfs defaults 0 2
Soll das so sein?

supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

Re: warning mdadm: system is now unbootable

Beitrag von supachamp » 07.06.2014 20:04:03

Oh. Ich weiß nicht wie das passiert ist. Aktuell sieht die fstab so aus

Code: Alles auswählen

/dev/md1	                 /		        ext3       defaults        1 1
/dev/sda2	                 none		swap      sw 	        
/dev/sdb2	                 none		swap      sw 	        
/dev/vg00/usr           /usr    	        xfs         defaults        0 2
/dev/vg00/var           /var    	        xfs          defaults,usrquota       0 2
/dev/vg00/home	/home		xfs	      defaults,usrquota	0 2
devpts		        /dev/pts	        devpts    gid=5,mode=620  0 0
none		        /proc		proc       defaults        0 0
none		        /tmp	tmpfs       defaults        0 0

dirk11
Beiträge: 2842
Registriert: 02.07.2013 11:47:01

Re: warning mdadm: system is now unbootable

Beitrag von dirk11 » 07.06.2014 23:14:27

Die fstab hat mal so gar nichts mit deinem ursprünglichen Problem zu tun.

supachamp
Beiträge: 6
Registriert: 07.06.2014 15:06:13

Re: warning mdadm: system is now unbootable

Beitrag von supachamp » 10.06.2014 20:48:27

Vielen Dank für Eure Hilfe!

Ich habe genau das getan, was Cae vorgeschlagen hat. Anschließend ein reboot und das System startete wie gewohnt :-).

Antworten