This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deb9:mdadm [2023/01/14 16:46] – [Prepare RAID with single disk] Bernard Condrau | deb9:mdadm [2024/04/03 15:08] (current) – [Links] Bernard Condrau | ||
---|---|---|---|
Line 34: | Line 34: | ||
| sdh | sdh1 | | sdh | sdh1 | ||
- | see also [[deb720:apsys|Hardware configuration]] | + | see also [[hw:machines# |
==== Replace a failed RAID disk ==== | ==== Replace a failed RAID disk ==== | ||
Line 111: | Line 111: | ||
===== Prepare RAID with single disk ===== | ===== Prepare RAID with single disk ===== | ||
+ | ==== Prepare new disk ==== | ||
+ | - If the new disk contains partitions | ||
+ | - Stop any Raid partitions with< | ||
+ | mdadm --remove / | ||
+ | - Remove the superblocks< | ||
+ | - Remove existing partitions with '' | ||
+ | - Create a new partition utilizing the full disk space. When asked, remove the existing signature. Change partition type to '' | ||
+ | Command (m for help): d | ||
+ | Command (m for help): n | ||
+ | Command (m for help): t, | ||
+ | - Create the RAID< | ||
+ | - Check the RAID was created< | ||
+ | ls / | ||
==== Links ==== | ==== Links ==== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
===== Move RAID to a new machine ===== | ===== Move RAID to a new machine ===== | ||
Line 121: | Line 135: | ||
- Append info to mdadm.conf< | - Append info to mdadm.conf< | ||
- Update initramfs< | - Update initramfs< | ||
+ | - Copy entire disk to new RAID (add '' | ||
+ | - Check size of directory< | ||
==== Troubleshooting ==== | ==== Troubleshooting ==== | ||
Line 130: | Line 146: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Links ===== | ===== Links ===== | ||
* [[https:// | * [[https:// |