what use is it if one disk fails… and half of the swap area goes lost and you can not resync the disks because some system-processes are failing….

# switch off swap space
swapoff -a

# check out what software raid to switch off
cat /etc/mdadm/mdadm.conf

# switch it off
mdadm --stop /dev/md/2

# remove it
mdadm --remove /dev/md2

mdadm –zero-superblock /dev/sda5
mdadm –zero-superblock /dev/sdb5

# recreate it
mdadm –create /dev/md/2 –level=1 –raid-devices=2 /dev/sda5 /dev/sdb5

# save config
mdadm –detail –scan >> /etc/mdadm/mdadm.conf

# reactivate swap space
mkswap /dev/md/2
swapon /dev/md/2

# Watch them resync and wait until complete.
watch cat /proc/mdstat