[Eisfair] Frage zu Raid1 auf neuem Eisfair1
Friedhold Schuster
f.schuster at gmx.de
Mo Aug 26 06:28:26 CEST 2013
Hallo,
ich brauche mal Eure Hilfe bei einem Raid auf einem Eisfair1:
Also ich möchte einen neuen Server aufsetzen mit Raid1.
Ich habe eine Platte für das Betriebssystem (kein Raid) und zwei für
Daten (als Raid1)
Ich bin dabei nach:
http://www.eisfair.org/fileadmin/eisfair/doc/node4.html
vorgegangen:
Einrichten der ersten Festplatte
Sektorgrößen anpassen (optional)
Einrichten der zweiten Festplatte
Reste eines RAID-Verbundes löschen
RAID-Verbund anlegen
mdadm --create /dev/md0 --bitmap=internal --level=1 --raid-disks=2
/dev/sdb1 /dev/sdc1
RAID Synchronisation
cat /proc/mdstat
ca. 12 Stunden warten
Anlegen des Dateisystems
mkfs -t xfs /dev/md0
danach:
mount /dev/md0 /data2
df -h
alles da! Freu!
nun in die fstab eintragen:
/dev/md0 /data2 xfs defaults 0 2
Soweit alles klar. Nach 12 Stunden Warterei funktioniert alles.
Doch nach einem Neustart ist das Raid weg.
eis2 # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 73G 390M 69G 1% /
/dev/sda1 46M 12M 33M 26% /boot
/dev/sda4 998M 18M 931M 2% /data
eis2 #
fdisk sagt folgendes:
eis2 # fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an
experimental phase. Use at your own discretion.
Disk /dev/sda: 80.0 GB, 80000000000 bytes, 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 98337 47M Linux filesyste boot
2 100352 360481 127M Linux swap swap
3 362496 154150945 73.3G Linux filesyste root
4 154152960 156229486 1014M Linux filesyste data
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0xcd88b6ee
Device Boot Start End Blocks Id System
/dev/sdb1 64 3907029167 1953514552 fd Linux raid
autodetect
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x5717cba0
Device Boot Start End Blocks Id System
/dev/sdc1 64 3907029167 1953514552 fd Linux raid
autodetect
eis2 #
Kein Raid mehr. Kann mir jemand sagen, wo mein Fehler liegen könnte?
Dankeschön.
Mehr Informationen über die Mailingliste Eisfair