How do you re-shape or grow a Raid 5 array?

Updated -

Scenario:

Partition /dev/md0 is a Raid 5 array with 3 member disks. The requirement is to add one more disk to raid 5 array while it is online

Add the the fourth disk to the Raid 5 array

mdadm /dev/md0 -a /dev/sdd1

Re-shape or Grow the  Array /dev/md0

mdadm -G /dev/md0 -n4 --backup-file=/tmp/critical-section

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.