Zum Inhalt springen

Diskussion:Linux/RAID: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
K Textersetzung - „http://“ durch „https://“
 
Zeile 62: Zeile 62:
# [https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID]
# [https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID https://www.thomas-krenn.com/de/wiki/Linux_Software_RAID]
# [https://de.wikipedia.org/wiki/RAID#Software-RAID https://de.wikipedia.org/wiki/RAID#Software-RAID]
# [https://de.wikipedia.org/wiki/RAID#Software-RAID https://de.wikipedia.org/wiki/RAID#Software-RAID]
# [http://tldp.org/HOWTO/Software-RAID-HOWTO.html The Software-RAID HOWTO]
# [https://tldp.org/HOWTO/Software-RAID-HOWTO.html The Software-RAID HOWTO]
# [https://RAID.wiki.kernel.org/index.php/Linux_RAID Linux RAID Wiki]
# [https://RAID.wiki.kernel.org/index.php/Linux_RAID Linux RAID Wiki]
# [https://RAID.wiki.kernel.org/index.php/RAID_setup RAID Setup]
# [https://RAID.wiki.kernel.org/index.php/RAID_setup RAID Setup]
# [https://www.heise.de/ct/ausgabe/2013-6-Tipps-und-Tricks-rund-um-Linux-Software-RAID-2327050.html Festplattenpuzzles - Tipps und Tricks rund um Linux-Software-RAID]
# [https://www.heise.de/ct/ausgabe/2013-6-Tipps-und-Tricks-rund-um-Linux-Software-RAID-2327050.html Festplattenpuzzles - Tipps und Tricks rund um Linux-Software-RAID]
# [https://www.tecchannel.de/a/workshop-software-RAID-unter-linux-einrichten,2032820 Workshop - Software-RAID unter Linux einrichten]
# [https://www.tecchannel.de/a/workshop-software-RAID-unter-linux-einrichten,2032820 Workshop - Software-RAID unter Linux einrichten]
# [http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID#.XvMxWKZCTXA Quick HOWTO : Ch26 : Linux Software RAID]
# [https://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID#.XvMxWKZCTXA Quick HOWTO : Ch26 : Linux Software RAID]
# [http://vger.kernel.org/vger-lists.html#linux-RAID linux-RAID Mailing List]
# [https://vger.kernel.org/vger-lists.html#linux-RAID linux-RAID Mailing List]
# [https://www.thomas-krenn.com/de/wiki/Ubuntu-Server-Installation_mit_Software-RAID Ubuntu-Server-Installation mit Software-RAID]
# [https://www.thomas-krenn.com/de/wiki/Ubuntu-Server-Installation_mit_Software-RAID Ubuntu-Server-Installation mit Software-RAID]
# [https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats]
# [https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats https://RAID.wiki.kernel.org/index.php/RAID_superblock_formats]

Aktuelle Version vom 7. April 2025, 14:44 Uhr

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