Diskussion:Linux/RAID
Erscheinungsbild
Partitionen erstellen
# fdisk /dev/sda
neue Partition erstellen
n
Partitionstyp ändern in linux auto raid
t
fd
Änderungen speichern
w
Partitionen kopieren
Partionstabelle in eine Datei schieben
# sfdisk /dev/sdb > part_table -f
Partitionstabelle auf Festplatte kopieren
# sfdisk /dev/sdb < part_table -f
System einmal neustarten
# systemctl reboot
Das wiederholen mit /dev/sdc und /dev/sdd
RAID erstellen
RAID 6 erstellen
# mdadm --create /dev/md1 --level=raid6 --raid-devices=4 /dev/sd?3
formatieren
# mkfs -text4 /dev/md1
mounten
# mount /dev/md1 /mnt
RAID 1 erstellen
# mdadm -C /dev/md0 -l 1 -n 4 missing /dev/sda1
Partition nachträglich in RAID 1 einbinden
# mdadm --add /dev/md0 /dev/sda1
Prüfen
# cat /proc/mdstat
Test-RAID mit Dateien
Dateien erstellen
# dd if=/dev/zero of=/raid0101.img bs=1M count=500
Loop-Geräte anlegen
# losetup /dev/loop1 dateiname
RAID erstellen
# mdadm --create /dev/md5 --level=raid6 --raid-devices=4 /dev/loop?
- https://docs.hetzner.com/de/robot/dedicated-server/raid/linux-software-raid/
- https://wiki.ubuntuusers.de/Software-RAID/
- https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID
- https://de.wikipedia.org/wiki/RAID#Software-RAID
- The Software-RAID HOWTO
- Linux RAID Wiki
- RAID Setup
- Festplattenpuzzles - Tipps und Tricks rund um Linux-Software-RAID
- Workshop - Software-RAID unter Linux einrichten
- Quick HOWTO : Ch26 : Linux Software RAID
- linux-RAID Mailing List
- Ubuntu-Server-Installation mit Software-RAID
- https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats