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:58] – [Raid 1, 5, 6] 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 107: | Line 107: | ||
It records the size (in pages per device) of the stripe cache which is used for synchronising all write operations to the array and all read operations if the array is degraded. The default is 256 which equals to 3MB memory consumption. | It records the size (in pages per device) of the stripe cache which is used for synchronising all write operations to the array and all read operations if the array is degraded. The default is 256 which equals to 3MB memory consumption. | ||
* Find system page size, on Debian 10 this is 4096:< | * Find system page size, on Debian 10 this is 4096:< | ||
- | * Set to 384MB memory consumption on my 3 disk raids (2021-12-05):< | + | * 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) | ||
+ | |||
+ | ===== 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 115: | 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 124: | Line 146: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Links ===== | ===== Links ===== | ||
* [[https:// | * [[https:// |