RAID

raid howto is located in Crypto

RAID recovery

https://raid.wiki.kernel.org/index.php/RAID_Recovery

if a raid is degraded, save superblock infos first:

mdadm --examine /dev/sd[abcd]1 > /etc/_raid/mdadm--examine_2013-03-10

check, whats up:

mdadm --detail /dev/md1

re-add a removed device:

mdadm  /dev/md1 --add /dev/sda2

watch revovery:

watch cat /proc/mdstat 

update existing initramfs:

update-initramfs -u -k all 

RAID setup changes

update the raid config - achtung “»” adds to the files, “>” overwrites:

mdadm --examine --scan >> /etc/mdadm/mdadm.conf 

you need to update initramfs: to find the root raid

make sure these modules are included in /etc/initramfs-tools/modules

raid0
raid1
md

re-create inramfs:

update-initramfs -u -k all

check in /boot, if they got recreated!

dpkg-reconfigure mdadm 
 
Back to top
linux/filesystems/raid.txt · Last modified: 2013/08/02 23:12 by tkilla