User Tools

Site Tools


computing:storage:linux_software_raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:linux_software_raid [2014/12/05 10:32]
gcooper
computing:storage:linux_software_raid [2019/10/25 10:42] (current)
gcooper
Line 22: Line 22:
  
 <file> <file>
-fdisk /dev/sda+fdisk -l /dev/sda
 </file> </file>
 +
 +or
 +
 +<file>
 +sgdisk -p /dev/sda
 +</file>
 +
 +**Copy Patition Scheme**: https://askubuntu.com/questions/57908/how-can-i-quickly-copy-a-gpt-partition-scheme-from-one-hard-drive-to-another/333923
 +
 +:!: Verify ''sfdisk'' recognizes your source partitions.  If not, try ''sgdisk''.
  
 Using fdisk, create matching partitions on various drives (block devices) of type **fd  Linux raid autodetect** that will be assembled into arrays. Using fdisk, create matching partitions on various drives (block devices) of type **fd  Linux raid autodetect** that will be assembled into arrays.
Line 39: Line 49:
 </file> </file>
  
-Once you partition the first drive, use sfdisk to duplicate partitions from that first drive to other drives:+:!: Be careful not to write to the **wrong disk** or you will have a **very bad day**! 
 + 
 +Once you partition the first drive, use ''sfdisk'' or ''sgdisk'' to replicate partitions from that first drive to other drives: 
 + 
 +<file> 
 +sfdisk -d /dev/sda | sfdisk /dev/sdb 
 +</file> 
 + 
 +or
  
 <file> <file>
-sfdisk -d /dev/sda | sfdisk /dev/sd[bcd]+sgdisk /dev/sda -R /dev/sdb 
 +sgdisk -G /dev/sdb
 </file> </file>
  
computing/storage/linux_software_raid.1417800778.txt.gz · Last modified: 2014/12/05 10:32 by gcooper