Linux/RAID/Vorbereitung: Unterschied zwischen den Versionen
Erscheinungsbild
Zeile 68: | Zeile 68: | ||
GPT (GUID-Partition-Table) wird angelegt | GPT (GUID-Partition-Table) wird angelegt | ||
Command (m for help): | Command (m for help): g | ||
Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB) | Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB) | ||
Partitionstabelle anlegen | Partitionstabelle anlegen | ||
Command (m for help): | Command (m for help): n | ||
Partition number (1-128, default 1): | Partition number (1-128, default 1): 1 | ||
First sector (2048-3907029134, default 2048): | First sector (2048-3907029134, default 2048): 2048 | ||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029134, default 3907029134): | Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029134, default 3907029134): +1842G | ||
Created a new | Created a new partition 1 of type 'Linux filesystem' and of size 1,8 TiB | ||
Partition als RAID-Partition markieren | Partition als RAID-Partition markieren | ||
Command (m for help): | Command (m for help): t | ||
Selected partition 1 | Selected partition 1 | ||
Partition type (type L to list all types): | Partition type (type L to list all types): 29 | ||
Changed type of partition 'Linux filesystem' to 'Linux RAID' | Changed type of partition 'Linux filesystem' to 'Linux RAID' | ||
Änderungen auf Korrektheit überprüfen | Änderungen auf Korrektheit überprüfen | ||
Command (m for help): | Command (m for help): p | ||
Disk | Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors | ||
Disk model: WDC WD20EZRX-00D | Disk model: WDC WD20EZRX-00D | ||
Units: sectors of 1 * 512 = 512 bytes | Units: sectors of 1 * 512 = 512 bytes | ||
Sector size (logical/physical): 512 bytes / 4096 bytes | Sector size (logical/physical): 512 bytes / 4096 bytes | ||
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | I/O size (minimum/optimal): 4096 bytes / 4096 bytes | ||
Disklabel type: | Disklabel type: gpt | ||
Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB | Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB | ||
Device Start End Sectors Size Type | Device Start End Sectors Size Type | ||
/dev/ | /dev/sdc1 2048 3862956031 3862953984 1,8T Linux RAID | ||
Änderungen schreiben | Änderungen schreiben | ||
Command (m for help): | Command (m for help): w | ||
The partition table has been altered | The partition table has been altered |
Version vom 28. Februar 2025, 13:32 Uhr
Linux/RAID/Vorbereitung - Datenträger vorbereitet
Beschreibung
Die Datenträger müssen für die Verwendung in einem RAID vorbereitet werden
Datenträger prüfen
- Zustand der Hardware
Um bestehende oder baldigen Defekt auszuschließen
Beschriftung
- Datenträger eindeutig beschriften
- Seriennummer
Seriennummer
- Seriennummer ermitteln
sudo hdparm -i /dev/sda | grep -i serialno
- Weitere Indormationen
Datenbereinigung
Wenn die vorherige Nutzung der Datenträger unklar ist, Datenträger löschen
- Vollständig
Sicher, aber zeitaufwendig
sudo dd if=/dev/zero of=/dev/sda status=progress
1132235649536 bytes (1,1 TB, 1,0 TiB) copied, 29019 s, 39,0 MB/s
- Teilweise
Schnell, aber vorherige Nutzung des Datenträgers sollte bekannt sein
sudo dd if=/dev/zero of=/dev/sda bs=1M count=2
2+0 Datensätze ein
2+0 Datensätze aus
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0952489 s, 22,0 MB/s
- Weitere Informationen
Partitionierung
- Datenträger des RAIDs identisch partitionieren
Am Anfang und Ende des Datenträgers einige Sektoren unpartitioniert lassen
fdisk
- Bezeichnungen der Datenträger herausfinden
sudo fdisk -l
- Datenträger partitionieren
sudo fdisk /dev/sdc
Welcome to fdisk (util-linux 2.33.1)
Changes will remain in memory only, until you decide to write them
Be careful before using the write command
Device does not contain a recognized partition table
Created a new DOS disklabel with disk identifier 0xdfca4904
Command (m for help)
GPT (GUID-Partition-Table) wird angelegt
Command (m for help): g
Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB)
Partitionstabelle anlegen
Command (m for help): n
Partition number (1-128, default 1): 1
First sector (2048-3907029134, default 2048): 2048
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029134, default 3907029134): +1842G
Created a new partition 1 of type 'Linux filesystem' and of size 1,8 TiB
Partition als RAID-Partition markieren
Command (m for help): t
Selected partition 1
Partition type (type L to list all types): 29
Changed type of partition 'Linux filesystem' to 'Linux RAID'
Änderungen auf Korrektheit überprüfen
Command (m for help): p
Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZRX-00D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB
Device Start End Sectors Size Type
/dev/sdc1 2048 3862956031 3862953984 1,8T Linux RAID
Änderungen schreiben
Command (m for help): w
The partition table has been altered
Calling ioctl() to re-read partition table
Syncing disks
- Weitere Informationen
Anhang
Siehe auch
- Linux/RAID
- Linux/RAID/Alignment
- Linux/RAID/Aufgaben
- Linux/RAID/Benachrichtigung
- Linux/RAID/Erstellung
- Linux/RAID/Fehlerbehebung
- Linux/RAID/Howto
- Linux/RAID/Mounten
- Linux/RAID/Optimierung
- Linux/RAID/Partitionierung
- Linux/RAID/Recovery
- Linux/RAID/Status
- Linux/RAID/Superblock
- Linux/RAID/TMP
- Linux/RAID/Tools
- Linux/RAID/Vorbereitung
- Linux/RAID/Wartung
- Linux/RAID/remove
Links
Weblinks