Removing/Adding drives from the array using command line

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • What I do is first I fail the drive in the array and then I remove it and then I shred it and then I assemble using the new one. You may need to change the SDC and MD, int he example below I remove C and add Q to md127 with a and b already in it.

      mdadm --fail /dev/md127 /dev/sdc
      mdadm --remove /dev/md127 /dev/sdc
      shred -v -n 1 /dev/sdc
      mdadm --assemble /dev/md127 /dev/sd[abq] --verbose --force

      If you need to unmount and stop the array:
      umount /dev/md127
      mdadm --stop /dev/md127

      Good luck, please be aware that you can lose all of your raid if not done properly.
      NAS Details: New Server Build