Linux Software Raid: Difference between revisions

From DWIKI
Line 7: Line 7:
*[http://www.mepis.org/docs/en/index.php/Software_RAID_mirror Switching to mirroring]
*[http://www.mepis.org/docs/en/index.php/Software_RAID_mirror Switching to mirroring]
*http://www.sanitarium.net/golug/Linux_Software_RAID.html
*http://www.sanitarium.net/golug/Linux_Software_RAID.html
*[https://unix.stackexchange.com/questions/332061/remove-drive-from-soft-raid Remove a disk from soft raid]


=What the howto and man mdadm don't tell=
=What the howto and man mdadm don't tell=

Revision as of 09:16, 27 August 2019

Links

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