Gelöst: mdadm --auto [war: mdadm --create /dev/md0 ... -> error ...: No such file]
Am Sonntag 28 Mai 2006 10:42 schrieb Andreas Kroschel:
> Hast Du den beteiligten Partitionen den Typ „fd“ verpaßt und das Raid
> genauso angelegt wie in /usr/share/doc/mdadm/rootraiddoc.97.html
> beschrieben? Das wird dort in Punkt 3.3 beschrieben; Deiner Befehlszeile
> fehlte z.B. das Gleichheitszeichen nach der Level-Angabe.
# fdisk -l /dev/hda | fgrep "hda4"
/dev/hda4 11213 19457 66227962+ fd Linux raid autodetect
# modprobe md
# modprobe raid1
# cat /proc/mdstat
Personalities : [raid1]
unused devices: <none>
# mdadm --create /dev/md0 --level=1 --raid-devices=2 \
missing /dev/hda4
mdadm: error opening /dev/md0: No such file or directory
Die Schreibweise ohne "=" hatte ich hierher:
http://www.debian-administration.org/articles/238. Eine weitere Variante:
mdadm -C /dev/md0 --level raid1 --raid-disks 2 missing /dev/hdc1
Gefunden hier:
Am Sonntag 28 Mai 2006 10:11 schrieb Dirk Salva:
> http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Softw
In Dirks langem Posting fand ich dann noch eine ...
mdadm -Cva /dev/md0 -l1 -n2 missing /dev/hde2
Und da war's: -a
man mdadm:
-a, --auto{=no,yes,md,mdp,part,p}{NN}
Instruct mdadm to create the device file if needed ...
Damit ging's dann. Das Device wurde beim Aufruf von mdadm erstellt.
Danke
Daniel
Reply to: