This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deb9:mdadm [2021/12/05 12:59] – [Raid 5, 6 only] 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 109: | Line 109: | ||
* Set to 384MB memory consumption on a 3 disk:< | * Set to 384MB memory consumption on a 3 disk:< | ||
* Set to 32768 on a server with 32 GB memory, set to 16384 on a server with 8 GB memory (2021-12-05) | * Set to 32768 on a server with 32 GB memory, set to 16384 on a server with 8 GB memory (2021-12-05) | ||
+ | |||
+ | ===== 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 ==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Move RAID to a new machine ===== | ===== Move RAID to a new machine ===== | ||
Line 116: | 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 125: | Line 146: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Links ===== | ===== Links ===== | ||
* [[https:// | * [[https:// |