The last step having set up a new array is to remove the old one from the computer. This is relatively straightforward.
Firstly the array has to be unmounted, which is a simple umount command with the path, in this case umount /oldhome. The next thing is to run a mdadm command to remove the array from the disk.
mdadm –manage –stop /dev/md0
is the command that will stop the running md0 RAID array.
Then another command removes the array:
mdadm –remove /dev/md0
Final action is to remove the superblock on the individual disks (only one disk present in this case as the failed drive has already been taken out of the computer):
mdadm –zero-superblock /dev/sdd
We also need to remove its entries from /etc/fstab and from /etc/mdadm/mdadm.conf