PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [Raspberry] mdadm Raid-"Platte" nach reboot nicht mehr vorhanden



trxit
14.09.16, 12:16
Hey zusammen,

ich habe 2 ext. Festplatten an mein System angeschlossen (läuft auf Raspbian RPi2) und mit mdadm zu einem Raid konfiguriert.

Bevor viele mich dafür hassen, warum ich sowas mache: Die Platten sind halt noch rumgefahren und waren mir zu Schade sie versauern zu lassen :P)

Raid und alles wird erkannt. Kann dann auch die erstellte /dev/md0 "Platte" mounten und benutzen. Doch nach einem Reboot ist alles weg und ich muss nochmal

"mdadm -Cv /dev/md0 -l1 -n2 /dev/sd[ab]1 && mount /dev/md0 /mnt/raid/" eintippen...

An was kann das liegen? Die mdadm software ist komplett neu konfiguriert und nicht von mir verpfuscht :D

Lg,
Trxit

florian0285
14.09.16, 16:41
fstab eintrag gesetzt?

lies mal das:

https://wiki.ubuntuusers.de/Software-RAID/

bei mdadm.conf und die zwei drei Zeilen darüber.

trxit
14.09.16, 20:01
Hi,

das mounten ist wie gesagt kein Problem. Das Problem liegt darin, dass das zu mountende Device (Raid Platte) nach dem Reboot nicht mehr "existiert". Die Platte "md0" ist nach dem Boot garnicht mehr da, also gibts theoretisch nichts zu mounten. Ob das fstab nun probiert oder nicht :-)

florian0285
14.09.16, 21:35
ich meinte auch den part mit mdadm.conf aktualisieren.



Eventuell ist das eine auch Lösung:



You'll probably want to add the mount to your /etc/fstab file, but resist the temptation. It won't work when you reboot the system. The problem is that USB drives get assigned SCSI devices based on a first come first serve basis, i.e., whichever drive gets detected first will be assigned first. Also, which USB port the drive gets plugged into will affect the SCSI device assignment. Because of this, when Linux boots it will most likely fail to assemble the RAID device because it's looking for the original drives (/dev/sdc) that were used to create the device. So, you'll need to manually assemble the RAID device and than mount it. In one of your startup scripts (I use /etc/rc.d/rc.local) put these two lines:

mdadm --assemble --uuid=9ca2a418:d3eb6dfe:e14f8c51:39f1a438 /dev/md/0
Note that you'll use the UUID value reported by the mdadm --detail -v /dev/md0
command