Linux Software Raid: Difference between revisions

From DWIKI
Line 3: Line 3:
*[https://raid.wiki.kernel.org/index.php/Mdstat mdstat]
*[https://raid.wiki.kernel.org/index.php/Mdstat mdstat]
*[https://www.snel.com/support/how-to-use-mdadm-to-manage-software-raid-disc-arrays/ How to use MDADM to manage software RAID disc arrays]
*[https://www.snel.com/support/how-to-use-mdadm-to-manage-software-raid-disc-arrays/ How to use MDADM to manage software RAID disc arrays]
*[https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04 How To Manage RAID Arrays with mdadm ]
*[[RAID]]
*[[RAID]]
*[http://tldp.org/HOWTO/Software-RAID-HOWTO.html Software RAID Howto]
*[http://tldp.org/HOWTO/Software-RAID-HOWTO.html Software RAID Howto]

Revision as of 11:30, 7 March 2023

Links

FAQ

Scan devices

mdadm --examine --scan --verbose /dev/sda2 /dev/sdb2 /dev/sdc2


What the howto and man mdadm don't tell

Checking the raid units

From man md:

echo check > /sys/block/md0/md/sync_action

check /proc/mdstat for status, and then set back to idle:

echo idle > /sys/block/md0/md/sync_action

Looking at your raid units

cat /proc/mdstat
mdadm --detail /dev/md0

(also shows what's going on when checking/resynching)

Hotswapping (scsi) disks

eject -s /dev/sda