Mdadm: Difference between revisions

196 bytes added ,  14 March 2023
No edit summary
Line 17: Line 17:


# Now you have a block device /dev/md0 on which you can add LUKS, LVM, or a filesystem.
# Now you have a block device /dev/md0 on which you can add LUKS, LVM, or a filesystem.
</syntaxhighlight>
===Add hot spare===
See https://tuxfixer.com/how-to-add-hot-spare-volume-to-the-existing-mdadm-software-raid-array/
<syntaxhighlight lang="bash">
mdadm --add /dev/md0 $DEVICE
</syntaxhighlight>
</syntaxhighlight>


==Scrubs==
==Scrubs==
On Ubuntu, md will automatically scrub on the first Sunday of every month using a systemd timer.
On Ubuntu, md will automatically scrub on the first Sunday of every month using a systemd timer.