mdadm --grow /dev/md0 --raid-devices 4 --level 6 --backup-file=/root/md0-backup-file.bak
NOTE: Additional disks can also be added if the original RAID 5 had less than 4 disks.
mdadm --add /dev/md0 /dev/sdd1 mdadm --grow /dev/md0 --raid-disks=4 --level 6 --backup-file=/root/md0-backup-file.bak
mdadm --detail /dev/md0 cat /proc/mdstat
Edit the /etc/mdadm/mdadm.conf file, such that the line spares=1 changed to spares=0.