Zum Inhalt springen

Diskussion:Linux/RAID

Aus Foxwiki

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?
  1. https://docs.hetzner.com/de/robot/dedicated-server/raid/linux-software-raid/
  2. https://wiki.ubuntuusers.de/Software-RAID/
  3. https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID
  4. https://de.wikipedia.org/wiki/RAID#Software-RAID
  5. The Software-RAID HOWTO
  6. Linux RAID Wiki
  7. RAID Setup
  8. Festplattenpuzzles - Tipps und Tricks rund um Linux-Software-RAID
  9. Workshop - Software-RAID unter Linux einrichten
  10. Quick HOWTO : Ch26 : Linux Software RAID
  11. linux-RAID Mailing List
  12. Ubuntu-Server-Installation mit Software-RAID
  13. https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats