Hi all,I have an DNS-320 with Alt-F 1.0 on it. I have two 1TB disks run in RAID1. I have had not a single problem with this setup for 8 years until a few weeks ago when I got the error message. I have read that this md0 is created by the system for a swap. The question: is that a way to fix this downgraded state? I cannot do anything under disk operations as it says that it is currently being used and I cannot stop the array and therefor cannot start to repair the raid for md0. I appreciate any help.
mdadm --fail /dev/md0 /dev/sda1 # sda1 has already failed on md0, but nevertheless...
mdadm --remove /dev/md0 /dev/sda1 # remove sda1 from md0 array
mdadm --zero-superblock /dev/sda1 # erase raid metadata from sda1
mdadm --add /dev/md0 /dev/sda1 # re add sda1 to the md0 array
Many thanks João for the prompt response!I went for the second (Recreate) option which worked fine, however then I thought that it may make sense to have the array for md0 again as before but then - obviously - the command line option (option 1) did not work anymore.. Can I recreate the array somehow? Does it really make sense to have the array for md0 swap from your opinion? Should this swap to be even increased to have better performance?
swapoff -a # stops swap
sed -i '/swap/d' /etc/fstab # remove swaps entries from fstab
mdadm --create /dev/md5 --run --metadata=1.0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 # creates md5 using sda1 and sda2
mkswap /dev/md5 # create swap on the new md5
echo "/dev/md5 none swap pri=1 0 0" >> /etc/fstab # update /etc/fstab
swapon -a -p1 # start swap