Search Our Database
How to add a missing partition back to an existing software RAID array in Linux
Introduction
In a RAID 1 setup, you might find that a reattached partition isn’t automatically recognized. This guide will help you add a missing partition back to your RAID array in Linux.
Prerequisite
- Root access to the server
- Knowledge in Software RAID
For this example, assumed that there is 2 partition, /dev/sda1 and /dev/sdb1 were unplugged from the server. Then, /dev/sdb is detached and re-attached back to the server.
And the system shows that the /dev/sdb1 is still missing from /dev/md0 RAID array.
1. Verify the active RAID array
cat /proc/mdstat
2. Check the RAID array status
mdadm --detail /dev/md0
3. To sync up, you can use this command to add /dev/sdb1 back to /dev/md0.
mdadm --add /dev/sdb1 /dev/md0
4. Verify again the RAID array status
mdadm --detail /dev/md0
Conclusion
This process should reattach the partition to the RAID array. For further help, contact support at support@ipserverone.com.