swap on raid1

This did work at one point. I thought it was configured but when I try to swapon -a I get the following error:

swapon: /dev/md1: Invalid argument

Any suggestions?

I did find the partition set to read only which I resolved with mdadm --readwrite /dev/md1, but i’m still getting the same error with the swapon command.