Growing a RAID 1 array using mdadm

I suppose that growing a RAID 1 array is not very common but I had a client that wanted to go from a 2 disk array to a 3 disk array so that one disk could be rotated out periodically and kept off-site. Here were the steps:

  • mdadm --add /dev/mdX /dev/sdXX
    • This adds the partition to the array as a hot spare.
  • mdadm --grow /dev/mdX -n 3
    • This increases the number of disks from 2 to 3.

Trackback URL for this post:

http://hightechsorcery.com/trackback/137
Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License