In the first place, there is nothing wrong having swap over a RAID, it's only resource wasteful, and even that only when swap starts being used, i.e., when the Swap graph in the Status page shows that some swap is being used.
As you have already tried the obvious, Disk->RAID, on the md0 line select the Destroy option on the "RAID Operations" and it did not worked (why? something peculiar to swap over RAID?), you have to resort to the command line after logging as the 'root' user.
Be sure that you don't make any mistakes, especially when naming the RAID devices or disk partitions, or you might loose your data. Double check what you typed before pressing the <enter> key. The following commands assume that md0 is the RAID device where swap is, that its components are sdb1, and that sda1 is not part of other RAID devices.
First, verify that swap is really using md0, you don't want to destroy yours data RAID.
The following command shows you how swap is currently working:
In my system I get:
Filename Type Size Used Priority
/dev/sda1 partition 524408 0 1
/dev/sdb1 partition 524408 0 1
What do you get in your system? You should get /dev/md0 as the Filename.
Do you get any other line? such as /dev/sda1?
Then you must check that md0 is build from sdb1 and that sda1 is not being used by any other RAID.
Using the following command:
mdadm --examine --scan --verbose
In my system I get:
ARRAY /dev/md/0 level=raid1 (...) devices=/dev/sdb2,/dev/sda2
ARRAY /dev/md/1 level=raid0 (...) devices=/dev/sdb3,/dev/sda3
ARRAY /dev/md/2 level=linear (...) devices=/dev/sdb4,/dev/sda4
You should see in your system that md0 devices are /dev/sdb1 and that /dev/sda1 does not appears in any other RAID
You should then stop swap on *all* devices as seen in the 'cat /proc/swaps' command output.
Assuming that only /dev/md0 is being used as swap, use the following command,
Then you should stop the md0 RAID device using the following command:
and then you should destroy the RAID information from the md0 device components.
Assuming that the only md0 component devices, as seen in the 'mdadm --examine --scan --verbose' are /dev/sdb1, and that /dev/sda1 does not appears as other RAID device components,
mdadm --zero-superblock --force /dev/sda1
mdadm --zero-superblock --force /dev/sdb1
You might get an error on the /dev/sda1 command, as it appears to not be part of the md0 array.
You now need to recreate and activate swap using the sda1/sdb1 disk partitions:
mkswap /dev/sda1
swapon /dev/sda1
mkswap /dev/sdb1
swapon /dev/sdb1
That's it. Changes take place immediately, no need to reboot (and should survive a reboot).
The md0 RAID array should not appear anymore, the amber leds should turn off, and ~1000MB of swap will appear in the Status page.
Worked?