Madadm-notes: Difference between revisions

From I Will Fear No Evil
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies
All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies
* [https://www.thomas-krenn.com/en/wiki/Mdadm_recovery_and_resync|mdadm resync]
* [https://www.thomas-krenn.com/en/wiki/Mdadm_recovery_and_resync|mdadm resync]
*[https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array|replace disks RAID1 array]
* [https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array|replace disks RAID1 array]
* [https://www.storagetutorials.com/how-to-create-partition-raid-linux-unix/|Partitioning examples]
 
Changing partition types
* [https://unix.stackexchange.com/questions/593681/changing-label-type-in-arch-linux-cfdisk|cfdisk examples]


sfdisk can mirror two disks (usually) so that you can rebuild quickly..
sfdisk can mirror two disks (usually) so that you can rebuild quickly..

Latest revision as of 18:13, 30 October 2021

All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies

Changing partition types

sfdisk can mirror two disks (usually) so that you can rebuild quickly..

there are ways to do this as a single command with pipes, but it sucks and does not always create the partitions correctly..

safer way: (Assuming sdb is toast)

  1. sfdisk -d /dev/sda > sda.out
  2. sfdisk /dev/sdb < sda.out
  3. sfdisk -l