User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mdadm [2023/12/02 08:52] – [A SparesMissing event had been detected on md device] normanmdadm [2025/06/20 11:25] (current) – [“not enough to start the array” – error while staring mdadm RAID array] norman
Line 1: Line 1:
 ====== Mdadm Helpers ====== ====== Mdadm Helpers ======
 +
 +*************
 +
 +===== Debian Disable/Enable Raid Monthly Checks =====
 +
 +<code>dpkg-reconfigure mdadm</code>
 +
 +or edit cron job
 +
 +<code>nano /etc/cron.d/mdadm</code>
 +
 +[[https://askubuntu.com/questions/1304738/mdadm-checking-raid-5-array-after-each-restart|External Link]]
 +
 +
  
 ===== How do I replace a disk marked as removed from a linux md raid-5 array ===== ===== How do I replace a disk marked as removed from a linux md raid-5 array =====
Line 28: Line 42:
  Assemble the pre-existing array:  Assemble the pre-existing array:
 <code>mdadm -A -f /dev/md0</code> <code>mdadm -A -f /dev/md0</code>
 +
 +
 +RUN raid 1 with one disk:
 +<code>
 +mdadm --run /dev/md126
 +</code>
 +
 +Then Add disk:
 +<code>
 +mdadm --manage /dev/md126 --add /dev/sdf4
 +</code>
  
 ====== Test Email Settings ====== ====== Test Email Settings ======