Madadm-notes: Difference between revisions
Jump to navigation
Jump to search
(Created page with "All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies sfdisk can mirror two disks (usually) so that you can rebuild quickly.. [https://www.thege...") |
mNo edit summary |
||
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.howtoforge.com/replacing_hard_disks_in_a_raid1_array|replace disks RAID1 array] | |||
sfdisk can mirror two disks (usually) so that you can rebuild quickly.. | sfdisk can mirror two disks (usually) so that you can rebuild quickly.. | ||
[https://www.thegeekstuff.com/2017/05/sfdisk-examples/|sfdisk examples] | * [https://www.thegeekstuff.com/2017/05/sfdisk-examples/|sfdisk examples] | ||
* [https://vsido.org/index.php?topic=214.0|Cylinder boundary issues] | |||
* [https://prefetch.net/blog/index.php/2009/09/12/why-partition-x-does-now-end-on-cylinder-boundary-warnings-dont-matter/|Boundry warnings] | |||
there are ways to do this as a single command with pipes, but it sucks and does not always create the partitions correctly.. | there are ways to do this as a single command with pipes, but it sucks and does not always create the partitions correctly.. | ||
Revision as of 17:11, 30 October 2021
All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies
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)
- sfdisk -d /dev/sda > sda.out
- sfdisk /dev/sdb < sda.out
- sfdisk -l